<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GdaConnection: GNOME Data Access 5 manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GNOME Data Access 5 manual">
<link rel="up" href="connection.html" title="Connections &amp; commands">
<link rel="prev" href="connection.html" title="Connections &amp; commands">
<link rel="next" href="GdaSqlParser.html" title="GdaSqlParser">
<meta name="generator" content="GTK-Doc V1.32 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#GdaConnection.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#GdaConnection.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces">  <span class="dim">|</span> 
                  <a href="#GdaConnection.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#GdaConnection.properties" class="shortcut">Properties</a></span><span id="nav_signals">  <span class="dim">|</span> 
                  <a href="#GdaConnection.signals" class="shortcut">Signals</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="connection.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="connection.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="GdaSqlParser.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GdaConnection"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GdaConnection.top_of_page"></a>GdaConnection</span></h2>
<p>GdaConnection — A connection to a database</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GdaConnection.stability-level"></a><h2>Stability Level</h2>
<a href="http://foldoc.org/Stable"><span class="acronym">Stable</span></a>, unless otherwise indicated
</div>
<div class="refsect1">
<a name="GdaConnection.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="GdaConnection.html" title="GdaConnection"><span class="returnvalue">GdaConnection</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-open-from-dsn" title="gda_connection_open_from_dsn ()">gda_connection_open_from_dsn</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaConnection.html" title="GdaConnection"><span class="returnvalue">GdaConnection</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-open-from-string" title="gda_connection_open_from_string ()">gda_connection_open_from_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaConnection.html" title="GdaConnection"><span class="returnvalue">GdaConnection</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-new-from-dsn" title="gda_connection_new_from_dsn ()">gda_connection_new_from_dsn</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaConnection.html" title="GdaConnection"><span class="returnvalue">GdaConnection</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-new-from-string" title="gda_connection_new_from_string ()">gda_connection_new_from_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-open" title="gda_connection_open ()">gda_connection_open</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-close" title="gda_connection_close ()">gda_connection_close</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-close-no-warning" title="gda_connection_close_no_warning ()">gda_connection_close_no_warning</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-is-opened" title="gda_connection_is_opened ()">gda_connection_is_opened</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaSqlParser.html" title="GdaSqlParser"><span class="returnvalue">GdaSqlParser</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-create-parser" title="gda_connection_create_parser ()">gda_connection_create_parser</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-value-to-sql-string" title="gda_connection_value_to_sql_string ()">gda_connection_value_to_sql_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-quote-sql-identifier" title="gda_connection_quote_sql_identifier ()">gda_connection_quote_sql_identifier</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-statement-to-sql" title="gda_connection_statement_to_sql ()">gda_connection_statement_to_sql</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-statement-prepare" title="gda_connection_statement_prepare ()">gda_connection_statement_prepare</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="returnvalue">GObject</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()">gda_connection_statement_execute</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-statement-execute-select" title="gda_connection_statement_execute_select ()">gda_connection_statement_execute_select</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-statement-execute-select-full" title="gda_connection_statement_execute_select_full ()">gda_connection_statement_execute_select_full</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-statement-execute-select-fullv" title="gda_connection_statement_execute_select_fullv ()">gda_connection_statement_execute_select_fullv</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-statement-execute-non-select" title="gda_connection_statement_execute_non_select ()">gda_connection_statement_execute_non_select</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-repetitive-statement-execute" title="gda_connection_repetitive_statement_execute ()">gda_connection_repetitive_statement_execute</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-batch-execute" title="gda_connection_batch_execute ()">gda_connection_batch_execute</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-begin-transaction" title="gda_connection_begin_transaction ()">gda_connection_begin_transaction</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-commit-transaction" title="gda_connection_commit_transaction ()">gda_connection_commit_transaction</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-rollback-transaction" title="gda_connection_rollback_transaction ()">gda_connection_rollback_transaction</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-add-savepoint" title="gda_connection_add_savepoint ()">gda_connection_add_savepoint</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-rollback-savepoint" title="gda_connection_rollback_savepoint ()">gda_connection_rollback_savepoint</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-delete-savepoint" title="gda_connection_delete_savepoint ()">gda_connection_delete_savepoint</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-async-statement-execute" title="gda_connection_async_statement_execute ()">gda_connection_async_statement_execute</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="returnvalue">GObject</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-async-fetch-result" title="gda_connection_async_fetch_result ()">gda_connection_async_fetch_result</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-async-cancel" title="gda_connection_async_cancel ()">gda_connection_async_cancel</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaTransactionStatus.html" title="GdaTransactionStatus"><span class="returnvalue">GdaTransactionStatus</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-get-transaction-status" title="gda_connection_get_transaction_status ()">gda_connection_get_transaction_status</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaConnection.html#GdaConnectionOptions" title="enum GdaConnectionOptions"><span class="returnvalue">GdaConnectionOptions</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-get-options" title="gda_connection_get_options ()">gda_connection_get_options</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="returnvalue">GdaServerProvider</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-get-provider" title="gda_connection_get_provider ()">gda_connection_get_provider</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-get-provider-name" title="gda_connection_get_provider_name ()">gda_connection_get_provider_name</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-get-dsn" title="gda_connection_get_dsn ()">gda_connection_get_dsn</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-get-cnc-string" title="gda_connection_get_cnc_string ()">gda_connection_get_cnc_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-get-authentication" title="gda_connection_get_authentication ()">gda_connection_get_authentication</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-get-date-format" title="gda_connection_get_date_format ()">gda_connection_get_date_format</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-get-events" title="gda_connection_get_events ()">gda_connection_get_events</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaServerOperation.html" title="GdaServerOperation"><span class="returnvalue">GdaServerOperation</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-create-operation" title="gda_connection_create_operation ()">gda_connection_create_operation</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-perform-operation" title="gda_connection_perform_operation ()">gda_connection_perform_operation</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-supports-feature" title="gda_connection_supports_feature ()">gda_connection_supports_feature</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaMetaStore.html" title="GdaMetaStore"><span class="returnvalue">GdaMetaStore</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-get-meta-store" title="gda_connection_get_meta_store ()">gda_connection_get_meta_store</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-update-meta-store" title="gda_connection_update_meta_store ()">gda_connection_update_meta_store</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-get-meta-store-data" title="gda_connection_get_meta_store_data ()">gda_connection_get_meta_store_data</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-get-meta-store-data-v" title="gda_connection_get_meta_store_data_v ()">gda_connection_get_meta_store_data_v</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaStatement.html" title="GdaStatement"><span class="returnvalue">GdaStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-parse-sql-string" title="gda_connection_parse_sql_string ()">gda_connection_parse_sql_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-execute-select-command" title="gda_connection_execute_select_command ()">gda_connection_execute_select_command</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-execute-non-select-command" title="gda_connection_execute_non_select_command ()">gda_connection_execute_non_select_command</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-insert-row-into-table" title="gda_connection_insert_row_into_table ()">gda_connection_insert_row_into_table</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-insert-row-into-table-v" title="gda_connection_insert_row_into_table_v ()">gda_connection_insert_row_into_table_v</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-update-row-in-table" title="gda_connection_update_row_in_table ()">gda_connection_update_row_in_table</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-update-row-in-table-v" title="gda_connection_update_row_in_table_v ()">gda_connection_update_row_in_table_v</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GdaConnection.html#gda-connection-delete-row-from-table" title="gda_connection_delete_row_from_table ()">gda_connection_delete_row_from_table</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GdaConnection.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
<td class="property_name"><a class="link" href="GdaConnection.html#GdaConnection--auth-string" title="The “auth-string” property">auth-string</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
<td class="property_name"><a class="link" href="GdaConnection.html#GdaConnection--cnc-string" title="The “cnc-string” property">cnc-string</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
<td class="property_name"><a class="link" href="GdaConnection.html#GdaConnection--dsn" title="The “dsn” property">dsn</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
<td class="property_name"><a class="link" href="GdaConnection.html#GdaConnection--events-history-size" title="The “events-history-size” property">events-history-size</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a></td>
<td class="property_name"><a class="link" href="GdaConnection.html#GdaConnection--execution-slowdown" title="The “execution-slowdown” property">execution-slowdown</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
<td class="property_name"><a class="link" href="GdaConnection.html#GdaConnection--execution-timer" title="The “execution-timer” property">execution-timer</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
<td class="property_name"><a class="link" href="GdaConnection.html#GdaConnection--is-wrapper" title="The “is-wrapper” property">is-wrapper</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<a class="link" href="GdaMetaStore.html" title="GdaMetaStore"><span class="type">GdaMetaStore</span></a> *</td>
<td class="property_name"><a class="link" href="GdaConnection.html#GdaConnection--meta-store" title="The “meta-store” property">meta-store</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
<td class="property_name"><a class="link" href="GdaConnection.html#GdaConnection--monitor-wrapped-in-mainloop" title="The “monitor-wrapped-in-mainloop” property">monitor-wrapped-in-mainloop</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a class="link" href="GdaConnection.html#GdaConnectionOptions" title="enum GdaConnectionOptions"><span class="type">GdaConnectionOptions</span></a></td>
<td class="property_name"><a class="link" href="GdaConnection.html#GdaConnection--options" title="The “options” property">options</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="type">GdaServerProvider</span></a> *</td>
<td class="property_name"><a class="link" href="GdaConnection.html#GdaConnection--provider" title="The “provider” property">provider</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></td>
<td class="property_name"><a class="link" href="GdaConnection.html#GdaConnection--thread-owner" title="The “thread-owner” property">thread-owner</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GdaConnection.signals"></a><h2>Signals</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="signal_proto_type">
<col width="300px" class="signal_proto_name">
<col width="200px" class="signal_proto_flags">
</colgroup>
<tbody>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GdaConnection.html#GdaConnection-conn-closed" title="The “conn-closed” signal">conn-closed</a></td>
<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GdaConnection.html#GdaConnection-conn-opened" title="The “conn-opened” signal">conn-opened</a></td>
<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GdaConnection.html#GdaConnection-conn-to-close" title="The “conn-to-close” signal">conn-to-close</a></td>
<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GdaConnection.html#GdaConnection-dsn-changed" title="The “dsn-changed” signal">dsn-changed</a></td>
<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GdaConnection.html#GdaConnection-error" title="The “error” signal">error</a></td>
<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
</tr>
<tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GdaConnection.html#GdaConnection-transaction-status-changed" title="The “transaction-status-changed” signal">transaction-status-changed</a></td>
<td class="signal_flags"><a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GdaConnection.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="other_proto_type">
<col class="other_proto_name">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="GdaConnection.html#GdaConnection-struct" title="GdaConnection">GdaConnection</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="GdaConnection.html#GdaConnectionOptions" title="enum GdaConnectionOptions">GdaConnectionOptions</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="GdaConnection.html#GdaConnectionError" title="enum GdaConnectionError">GdaConnectionError</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GdaConnection.html#GDA-CONNECTION-ERROR:CAPS" title="GDA_CONNECTION_ERROR">GDA_CONNECTION_ERROR</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="GdaConnection.html#GdaConnectionFeature" title="enum GdaConnectionFeature">GdaConnectionFeature</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="GdaConnection.html#GdaConnectionMetaType" title="enum GdaConnectionMetaType">GdaConnectionMetaType</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GdaConnection.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
    <span class="lineart">╰──</span> GdaConnection
        <span class="lineart">╰──</span> <a class="link" href="GdaVirtualConnection.html" title="GdaVirtualConnection">GdaVirtualConnection</a>
</pre>
</div>
<div class="refsect1">
<a name="GdaConnection.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GdaConnection implements
 <a class="link" href="GdaLockable.html" title="GdaLockable">GdaLockable</a>.</p>
</div>
<div class="refsect1">
<a name="GdaConnection.description"></a><h2>Description</h2>
<p>Each connection to a database is represented by a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object. A connection is created (and opened)
using <a class="link" href="GdaConnection.html#gda-connection-open-from-dsn" title="gda_connection_open_from_dsn ()"><code class="function">gda_connection_open_from_dsn()</code></a> if a data source has been defined, or <a class="link" href="GdaConnection.html#gda-connection-open-from-string" title="gda_connection_open_from_string ()"><code class="function">gda_connection_open_from_string()</code></a>
otherwise. It is not recommended to create a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object using <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-new"><code class="function">g_object_new()</code></a> as the results are
unpredictable (some parts won't correctly be initialized).</p>
<p>Use the connection object to execute statements, use transactions, get meta data information, ...</p>
<p>If supported by the database provider being used, statements can be executed asynchronously instead of
blocking the execution thread untill the execution of a statement is finished. Each database provider
is free to implement this feature as it wishes (using the API or using threads). The steps involved to
execute a statement are then:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>Request the statement execution using
<a class="link" href="GdaConnection.html#gda-connection-async-statement-execute" title="gda_connection_async_statement_execute ()"><code class="function">gda_connection_async_statement_execute()</code> which returns an
  execution ID to be used to identify a specific request</a></p></li>
<li class="listitem"><p>Do some useful things (that is why async. statements' excution are for)</p></li>
<li class="listitem"><p>Use one or more times 
<a class="link" href="GdaConnection.html#gda-connection-async-fetch-result" title="gda_connection_async_fetch_result ()"><code class="function">gda_connection_async_fetch_result()</code></a> to see
if the execution is finished, using the request ID</p></li>
<li class="listitem"><p>Use <a class="link" href="GdaConnection.html#gda-connection-async-cancel" title="gda_connection_async_cancel ()"><code class="function">gda_connection_async_cancel()</code></a> to cancel
the execution of a statement</p></li>
</ul></div>
<p>The <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object implements its own locking mechanism so it is thread-safe. However ad some database
providers rely on an API which does not support threads or supports it only partially, the connections
opened using those providers will only be accessible from the thread which created them (any other thread will
be blocked trying to access the connection, use the</p>
<GTKDOCLINK HREF="gda-lockable-try-lock"><code class="function">gda_lockable_try_lock()</code></GTKDOCLINK> method to check it the connection
<p>is usable from a thread).</p>
<p>If a connection really needs to be accessed by several threads at once, then it is possible to pass the
<a class="link" href="GdaConnection.html#GDA-CONNECTION-OPTIONS-THREAD-SAFE:CAPS"><span class="type">GDA_CONNECTION_OPTIONS_THREAD_SAFE</span></a> flag when opening it. This flag requests that the real connection
be created and really accessed in a <span class="emphasis"><em>private</em></span> sub thread.</p>
</div>
<div class="refsect1">
<a name="GdaConnection.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gda-connection-open-from-dsn"></a><h3>gda_connection_open_from_dsn ()</h3>
<pre class="programlisting"><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="returnvalue">GdaConnection</span></a> *
gda_connection_open_from_dsn (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *dsn</code></em>,
                              <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *auth_string</code></em>,
                              <em class="parameter"><code><a class="link" href="GdaConnection.html#GdaConnectionOptions" title="enum GdaConnectionOptions"><span class="type">GdaConnectionOptions</span></a> options</code></em>,
                              <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>This function is the way of opening database connections with libgda, using a pre-defined data source (DSN),
see <a class="link" href="libgda-5.0-Configuration.html#gda-config-define-dsn" title="gda_config_define_dsn ()"><code class="function">gda_config_define_dsn()</code></a> for more information about how to define a DSN. If you don't want to define
a DSN, it is possible to use <a class="link" href="GdaConnection.html#gda-connection-open-from-string" title="gda_connection_open_from_string ()"><code class="function">gda_connection_open_from_string()</code></a> instead of this method.</p>
<p>The <em class="parameter"><code>dsn</code></em>
 string must have the following format: "[&lt;username&gt;[:&lt;password&gt;]@]&lt;DSN&gt;" 
(if &lt;username&gt; and/or &lt;password&gt; are provided, and <em class="parameter"><code>auth_string</code></em>
 is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then these username
and passwords will be used). Note that if provided, &lt;username&gt; and &lt;password&gt; 
must be encoded as per RFC 1738, see <a class="link" href="libgda-5.0-Utility-functions.html#gda-rfc1738-encode" title="gda_rfc1738_encode ()"><code class="function">gda_rfc1738_encode()</code></a> for more information.</p>
<p>The <em class="parameter"><code>auth_string</code></em>
 can contain the authentication information for the server
to accept the connection. It is a string containing semi-colon seperated named value, usually 
like "USERNAME=...;PASSWORD=..." where the ... are replaced by actual values. Note that each
name and value must be encoded as per RFC 1738, see <a class="link" href="libgda-5.0-Utility-functions.html#gda-rfc1738-encode" title="gda_rfc1738_encode ()"><code class="function">gda_rfc1738_encode()</code></a> for more information.</p>
<p>The actual named parameters required depend on the provider being used, and that list is available
as the <em class="parameter"><code>auth_params</code></em> member of the <a class="link" href="libgda-5.0-Configuration.html#GdaProviderInfo" title="struct GdaProviderInfo"><span class="type">GdaProviderInfo</span></a> structure for each installed
provider (use <a class="link" href="libgda-5.0-Configuration.html#gda-config-get-provider-info" title="gda_config_get_provider_info ()"><code class="function">gda_config_get_provider_info()</code></a> to get it). Also one can use the "gda-sql-5.0 -L" command to 
list the possible named parameters.</p>
<p>This method may fail with a GDA_CONNECTION_ERROR domain error (see the <a class="link" href="GdaConnection.html#GdaConnectionError" title="enum GdaConnectionError"><span class="type">GdaConnectionError</span></a> error codes) 
or a <code class="literal">GDA_CONFIG_ERROR</code> domain error (see the <span class="type">GdaConfigError</span> error codes).</p>
<div class="refsect3">
<a name="gda-connection-open-from-dsn.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>dsn</p></td>
<td class="parameter_description"><p>data source name.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>auth_string</p></td>
<td class="parameter_description"><p>authentication string, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>options</p></td>
<td class="parameter_description"><p>options for the connection (see <a class="link" href="GdaConnection.html#GdaConnectionOptions" title="enum GdaConnectionOptions"><span class="type">GdaConnectionOptions</span></a>).</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store an error, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-open-from-dsn.returns"></a><h4>Returns</h4>
<p>a new <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> if connection opening was successful or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there was an error. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-open-from-string"></a><h3>gda_connection_open_from_string ()</h3>
<pre class="programlisting"><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="returnvalue">GdaConnection</span></a> *
gda_connection_open_from_string (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *provider_name</code></em>,
                                 <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *cnc_string</code></em>,
                                 <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *auth_string</code></em>,
                                 <em class="parameter"><code><a class="link" href="GdaConnection.html#GdaConnectionOptions" title="enum GdaConnectionOptions"><span class="type">GdaConnectionOptions</span></a> options</code></em>,
                                 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Opens a connection given a provider ID and a connection string. This
allows applications to open connections without having to create
a data source (DSN) in the configuration. The format of <em class="parameter"><code>cnc_string</code></em>
 is
similar to PostgreSQL and MySQL connection strings. It is a semicolumn-separated
series of &lt;key&gt;=&lt;value&gt; pairs, where each key and value are encoded as per RFC 1738, 
see <a class="link" href="libgda-5.0-Utility-functions.html#gda-rfc1738-encode" title="gda_rfc1738_encode ()"><code class="function">gda_rfc1738_encode()</code></a> for more information.</p>
<p>The possible keys depend on the provider, the "gda-sql-5.0 -L" command
can be used to list the actual keys for each installed database provider.</p>
<p>For example the connection string to open an SQLite connection to a database
file named "my_data.db" in the current directory would be <code class="constant">"DB_DIR=.;DB_NAME=my_data"</code>.</p>
<p>The <em class="parameter"><code>cnc_string</code></em>
 string must have the following format: 
"&amp;lt;provider&amp;gt;://@]&lt;connection_params&gt;"
(if &lt;username&gt; and/or &lt;password&gt; are provided, and <em class="parameter"><code>auth_string</code></em>
 is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then these username
and passwords will be used, and if &lt;provider&gt; is provided and <em class="parameter"><code>provider_name</code></em>
 is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> then this
provider will be used). Note that if provided, &lt;username&gt;, &lt;password&gt; and  &lt;provider&gt;
must be encoded as per RFC 1738, see <a class="link" href="libgda-5.0-Utility-functions.html#gda-rfc1738-encode" title="gda_rfc1738_encode ()"><code class="function">gda_rfc1738_encode()</code></a> for more information.</p>
<p>The <em class="parameter"><code>auth_string</code></em>
 must contain the authentication information for the server
to accept the connection. It is a string containing semi-colon seperated named values, usually 
like "USERNAME=...;PASSWORD=..." where the ... are replaced by actual values. Note that each
name and value must be encoded as per RFC 1738, see <a class="link" href="libgda-5.0-Utility-functions.html#gda-rfc1738-encode" title="gda_rfc1738_encode ()"><code class="function">gda_rfc1738_encode()</code></a> for more information.</p>
<p>The actual named parameters required depend on the provider being used, and that list is available
as the <em class="parameter"><code>auth_params</code></em> member of the <a class="link" href="libgda-5.0-Configuration.html#GdaProviderInfo" title="struct GdaProviderInfo"><span class="type">GdaProviderInfo</span></a> structure for each installed
provider (use <a class="link" href="libgda-5.0-Configuration.html#gda-config-get-provider-info" title="gda_config_get_provider_info ()"><code class="function">gda_config_get_provider_info()</code></a> to get it). Similarly to the format of the connection
string, use the "gda-sql-5.0 -L" command to list the possible named parameters.</p>
<p>Additionally, it is possible to have the connection string
respect the "&lt;provider_name&gt;://&lt;real cnc string&gt;" format, in which case the provider name
and the real connection string will be extracted from that string (note that if <em class="parameter"><code>provider_name</code></em>

is not <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> then it will still be used as the provider ID).</p>
<p>This method may fail with a GDA_CONNECTION_ERROR domain error (see the <a class="link" href="GdaConnection.html#GdaConnectionError" title="enum GdaConnectionError"><span class="type">GdaConnectionError</span></a> error codes) 
or a <code class="literal">GDA_CONFIG_ERROR</code> domain error (see the <span class="type">GdaConfigError</span> error codes).</p>
<div class="refsect3">
<a name="gda-connection-open-from-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>provider_name</p></td>
<td class="parameter_description"><p>provider ID to connect to, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>cnc_string</p></td>
<td class="parameter_description"><p>connection string.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>auth_string</p></td>
<td class="parameter_description"><p>authentication string, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>options</p></td>
<td class="parameter_description"><p>options for the connection (see <a class="link" href="GdaConnection.html#GdaConnectionOptions" title="enum GdaConnectionOptions"><span class="type">GdaConnectionOptions</span></a>).</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store an error, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-open-from-string.returns"></a><h4>Returns</h4>
<p>a new <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> if connection opening was successful or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there was an error. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-new-from-dsn"></a><h3>gda_connection_new_from_dsn ()</h3>
<pre class="programlisting"><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="returnvalue">GdaConnection</span></a> *
gda_connection_new_from_dsn (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *dsn</code></em>,
                             <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *auth_string</code></em>,
                             <em class="parameter"><code><a class="link" href="GdaConnection.html#GdaConnectionOptions" title="enum GdaConnectionOptions"><span class="type">GdaConnectionOptions</span></a> options</code></em>,
                             <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>This function is similar to <a class="link" href="GdaConnection.html#gda-connection-open-from-dsn" title="gda_connection_open_from_dsn ()"><code class="function">gda_connection_open_from_dsn()</code></a>, except it does not actually open the
connection, you have to open it using <a class="link" href="GdaConnection.html#gda-connection-open" title="gda_connection_open ()"><code class="function">gda_connection_open()</code></a>.</p>
<div class="refsect3">
<a name="gda-connection-new-from-dsn.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>dsn</p></td>
<td class="parameter_description"><p>data source name.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>auth_string</p></td>
<td class="parameter_description"><p>authentication string, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>options</p></td>
<td class="parameter_description"><p>options for the connection (see <a class="link" href="GdaConnection.html#GdaConnectionOptions" title="enum GdaConnectionOptions"><span class="type">GdaConnectionOptions</span></a>).</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store an error, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-new-from-dsn.returns"></a><h4>Returns</h4>
<p>a new <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> if connection opening was successful or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there was an error. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
<p class="since">Since: 5.0.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-new-from-string"></a><h3>gda_connection_new_from_string ()</h3>
<pre class="programlisting"><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="returnvalue">GdaConnection</span></a> *
gda_connection_new_from_string (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *provider_name</code></em>,
                                <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *cnc_string</code></em>,
                                <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *auth_string</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaConnection.html#GdaConnectionOptions" title="enum GdaConnectionOptions"><span class="type">GdaConnectionOptions</span></a> options</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>This function is similar to <a class="link" href="GdaConnection.html#gda-connection-open-from-string" title="gda_connection_open_from_string ()"><code class="function">gda_connection_open_from_string()</code></a>, except it does not actually open the
connection, you have to open it using <a class="link" href="GdaConnection.html#gda-connection-open" title="gda_connection_open ()"><code class="function">gda_connection_open()</code></a>.</p>
<div class="refsect3">
<a name="gda-connection-new-from-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>provider_name</p></td>
<td class="parameter_description"><p>provider ID to connect to, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>cnc_string</p></td>
<td class="parameter_description"><p>connection string.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>auth_string</p></td>
<td class="parameter_description"><p>authentication string, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>options</p></td>
<td class="parameter_description"><p>options for the connection (see <a class="link" href="GdaConnection.html#GdaConnectionOptions" title="enum GdaConnectionOptions"><span class="type">GdaConnectionOptions</span></a>).</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store an error, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-new-from-string.returns"></a><h4>Returns</h4>
<p>a new <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> if connection opening was successful or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there was an error. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
<p class="since">Since: 5.0.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-open"></a><h3>gda_connection_open ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_open (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                     <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Tries to open the connection.</p>
<div class="refsect3">
<a name="gda-connection-open.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-open.returns"></a><h4>Returns</h4>
<p> TRUE if the connection is opened, and FALSE otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-close"></a><h3>gda_connection_close ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gda_connection_close (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>);</pre>
<p>Closes the connection to the underlying data source, but first emits the 
"conn-to-close" signal.</p>
<div class="refsect3">
<a name="gda-connection-close.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-close-no-warning"></a><h3>gda_connection_close_no_warning ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gda_connection_close_no_warning (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>);</pre>
<p>Closes the connection to the underlying data source, without emiting any warning signal.</p>
<div class="refsect3">
<a name="gda-connection-close-no-warning.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-is-opened"></a><h3>gda_connection_is_opened ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_is_opened (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>);</pre>
<p>Checks whether a connection is open or not.</p>
<div class="refsect3">
<a name="gda-connection-is-opened.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-is-opened.returns"></a><h4>Returns</h4>
<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the connection is open, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if it's not.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-create-parser"></a><h3>gda_connection_create_parser ()</h3>
<pre class="programlisting"><a class="link" href="GdaSqlParser.html" title="GdaSqlParser"><span class="returnvalue">GdaSqlParser</span></a> *
gda_connection_create_parser (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>);</pre>
<p>Creates a new parser object able to parse the SQL dialect understood by <em class="parameter"><code>cnc</code></em>
. 
If the <a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="type">GdaServerProvider</span></a> object internally used by <em class="parameter"><code>cnc</code></em>
 does not have its own parser, 
then <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, and a general SQL parser can be obtained
using <a class="link" href="GdaSqlParser.html#gda-sql-parser-new" title="gda_sql_parser_new ()"><code class="function">gda_sql_parser_new()</code></a>.</p>
<div class="refsect3">
<a name="gda-connection-create-parser.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-create-parser.returns"></a><h4>Returns</h4>
<p>a new <a class="link" href="GdaSqlParser.html" title="GdaSqlParser"><span class="type">GdaSqlParser</span></a> object, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-value-to-sql-string"></a><h3>gda_connection_value_to_sql_string ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gda_connection_value_to_sql_string (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                    <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> *from</code></em>);</pre>
<p>Produces a fully quoted and escaped string from a GValue</p>
<div class="refsect3">
<a name="gda-connection-value-to-sql-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>from</p></td>
<td class="parameter_description"><p><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> to convert from</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-value-to-sql-string.returns"></a><h4>Returns</h4>
<p> escaped and quoted value or NULL if not supported.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-quote-sql-identifier"></a><h3>gda_connection_quote_sql_identifier ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gda_connection_quote_sql_identifier (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                     <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
<p>Use this method to get a correctly quoted (if necessary) SQL identifier which can be used
in SQL statements, from <em class="parameter"><code>id</code></em>
. If <em class="parameter"><code>id</code></em>
 is already correctly quoted for <em class="parameter"><code>cnc</code></em>
, then a copy of <em class="parameter"><code>id</code></em>

may be returned.</p>
<p>This method may add double quotes (or other characters) around <em class="parameter"><code>id</code></em>
:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>if <em class="parameter"><code>id</code></em> is a reserved SQL keyword (such as SELECT, INSERT, ...)</p></li>
<li class="listitem"><p>if <em class="parameter"><code>id</code></em> contains non allowed characters such as spaces, or if it starts with a digit</p></li>
<li class="listitem"><p>in any other event as necessary for <em class="parameter"><code>cnc</code></em>, depending on the the options passed when opening the <em class="parameter"><code>cnc</code></em>
           connection, and specifically the <a class="link" href="GdaConnection.html#GDA-CONNECTION-OPTIONS-SQL-IDENTIFIERS-CASE-SENSITIVE:CAPS">
           GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE</a> option.</p></li>
</ul></div>
<p>One can safely pass an already quoted <em class="parameter"><code>id</code></em>
 to this method, either with quoting characters allowed by <em class="parameter"><code>cnc</code></em>
 or using the
double quote (") character.</p>
<div class="refsect3">
<a name="gda-connection-quote-sql-identifier.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>an SQL identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-quote-sql-identifier.returns"></a><h4>Returns</h4>
<p> a new string, to free with <a href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> once not needed anymore</p>
</div>
<p class="since">Since: 4.0.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-statement-to-sql"></a><h3>gda_connection_statement_to_sql ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gda_connection_statement_to_sql (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                 <em class="parameter"><code><a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> *stmt</code></em>,
                                 <em class="parameter"><code><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> *params</code></em>,
                                 <em class="parameter"><code><a class="link" href="GdaStatement.html#GdaStatementSqlFlag" title="enum GdaStatementSqlFlag"><span class="type">GdaStatementSqlFlag</span></a> flags</code></em>,
                                 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> **params_used</code></em>,
                                 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Renders <em class="parameter"><code>stmt</code></em>
 as an SQL statement, adapted to the SQL dialect used by <em class="parameter"><code>cnc</code></em>
</p>
<div class="refsect3">
<a name="gda-connection-statement-to-sql.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stmt</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> object (which can be obtained using <a class="link" href="GdaStatement.html#gda-statement-get-parameters" title="gda_statement_get_parameters ()"><code class="function">gda_statement_get_parameters()</code></a>), or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>flags</p></td>
<td class="parameter_description"><p>SQL rendering flags, as <a class="link" href="GdaStatement.html#GdaStatementSqlFlag" title="enum GdaStatementSqlFlag"><span class="type">GdaStatementSqlFlag</span></a> OR'ed values</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params_used</p></td>
<td class="parameter_description"><p>a place to store the list of individual <a class="link" href="GdaHolder.html" title="GdaHolder"><span class="type">GdaHolder</span></a> objects within <em class="parameter"><code>params</code></em>
which have been used. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>][<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> Gda.Holder][<a href="http://foldoc.org/out"><span class="acronym">out</span></a>][<a href="http://foldoc.org/transfer%20container"><span class="acronym">transfer container</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-statement-to-sql.returns"></a><h4>Returns</h4>
<p>a new string, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-statement-prepare"></a><h3>gda_connection_statement_prepare ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_statement_prepare (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                  <em class="parameter"><code><a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> *stmt</code></em>,
                                  <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Ask the database accessed through the <em class="parameter"><code>cnc</code></em>
 connection to prepare the usage of <em class="parameter"><code>stmt</code></em>
. This is only useful
if <em class="parameter"><code>stmt</code></em>
 will be used more than once (however some database providers may always prepare statements 
before executing them).</p>
<p>This function is also useful to make sure <em class="parameter"><code>stmt</code></em>
 is fully understood by the database before actually executing it.</p>
<p>Note however that it is also possible that <a class="link" href="GdaConnection.html#gda-connection-statement-prepare" title="gda_connection_statement_prepare ()"><code class="function">gda_connection_statement_prepare()</code></a> fails when
<a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()"><code class="function">gda_connection_statement_execute()</code></a> does not fail (this will usually be the case with statements such as
"SELECT * FROM ##tablename::string" because database usually don't allow variables to be used in place of a 
table name).</p>
<div class="refsect3">
<a name="gda-connection-statement-prepare.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stmt</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-statement-prepare.returns"></a><h4>Returns</h4>
<p> TRUE if no error occurred.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-statement-execute"></a><h3>gda_connection_statement_execute ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="returnvalue">GObject</span></a> *
gda_connection_statement_execute (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                  <em class="parameter"><code><a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> *stmt</code></em>,
                                  <em class="parameter"><code><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> *params</code></em>,
                                  <em class="parameter"><code><a class="link" href="GdaStatement.html#GdaStatementModelUsage" title="enum GdaStatementModelUsage"><span class="type">GdaStatementModelUsage</span></a> model_usage</code></em>,
                                  <em class="parameter"><code><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> **last_insert_row</code></em>,
                                  <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Executes <em class="parameter"><code>stmt</code></em>
. </p>
<p>As <em class="parameter"><code>stmt</code></em>
 can, by design (and if not abused), contain only one SQL statement, the
return object will either be:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>a <a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a> object (which is also a <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a>) if <em class="parameter"><code>stmt</code></em> is a SELECT statement 
            (usually a GDA_SQL_STATEMENT_SELECT, see <a class="link" href="libgda-5.0-GdaSqlStatement.html#GdaSqlStatementType" title="enum GdaSqlStatementType"><span class="type">GdaSqlStatementType</span></a>)
            containing the results of the SELECT. The resulting data model is by default read only, but
            modifications can be enabled, see the <a class="link" href="GdaDataSelect.html" title="GdaDataSelect"><span class="type">GdaDataSelect</span></a>'s documentation for more information.</p></li>
<li class="listitem">
<p>a <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> for any other SQL statement which correctly executed. In this case
       (if the provider supports it), then the <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> may contain value holders named:
       </p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; ">
<li class="listitem"><p>a (gint) <a class="link" href="GdaHolder.html" title="GdaHolder"><span class="type">GdaHolder</span></a> named "IMPACTED_ROWS"</p></li>
<li class="listitem"><p>a (GObject) <a class="link" href="GdaHolder.html" title="GdaHolder"><span class="type">GdaHolder</span></a> named "EVENT" which contains a <a class="link" href="GdaConnectionEvent.html" title="GdaConnectionEvent"><span class="type">GdaConnectionEvent</span></a></p></li>
</ul></div>
</li>
</ul></div>
<p>If <em class="parameter"><code>last_insert_row</code></em>
 is not <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> and <em class="parameter"><code>stmt</code></em>
 is an INSERT statement, then it will contain (if the
provider used by <em class="parameter"><code>cnc</code></em>
 supports it) a new <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> object composed of value holders named "+&lt;column number&gt;"
starting at column 0 which contain the actual inserted values. For example if a table is composed of an 'id' column
which is auto incremented and a 'name' column then the execution of a "INSERT INTO mytable (name) VALUES ('joe')"
query will return a <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> with two holders:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>one with the '+0' ID which may for example contain 1 (note that its "name" property should be "id")</p></li>
<li class="listitem"><p>one with the '+1' ID which will contain 'joe' (note that its "name" property should be "name")</p></li>
</ul></div>
<p>This method may fail with a <a class="link" href="GdaServerProvider.html#GDA-SERVER-PROVIDER-ERROR:CAPS" title="GDA_SERVER_PROVIDER_ERROR"><code class="literal">GDA_SERVER_PROVIDER_ERROR</code></a> domain error (see the <a class="link" href="GdaServerProvider.html#GdaServerProviderError" title="enum GdaServerProviderError"><span class="type">GdaServerProviderError</span></a> error codes).</p>
<p>Note1: If <em class="parameter"><code>stmt</code></em>
 is a SELECT statement which has some parameters and  if <em class="parameter"><code>params</code></em>
 is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then the statement can't
be executed and this method will return <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
<p>Note2: If <em class="parameter"><code>stmt</code></em>
 is a SELECT statement which has some parameters and  if <em class="parameter"><code>params</code></em>
 is not <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> but contains some
invalid parameters, then the statement can't be executed and this method will return <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, unless the
<em class="parameter"><code>model_usage</code></em>
 has the GDA_STATEMENT_MODEL_ALLOW_NOPARAM flag.</p>
<p>Note3: If <em class="parameter"><code>stmt</code></em>
 is a SELECT statement which has some parameters and  if <em class="parameter"><code>params</code></em>
 is not <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> but contains some
invalid parameters and if <em class="parameter"><code>model_usage</code></em>
 has the GDA_STATEMENT_MODEL_ALLOW_NOPARAM flag, then the returned
data model will contain no row but will have all the correct columns (even though some of the columns might
report as GDA_TYPE_NULL). In this case, if (after this method call) any of <em class="parameter"><code>params</code></em>
' parameters change
then the resulting data model will re-run itself, see the GdaDataSelect's </p>
<a class="link" href="GdaDataSelect.html#GdaDataSelect--auto-reset" title="The “auto-reset” property">auto-reset</a> property for more information.
<p>Note4: if <em class="parameter"><code>model_usage</code></em>
 does not contain the GDA_STATEMENT_MODEL_RANDOM_ACCESS or
GDA_STATEMENT_MODEL_CURSOR_FORWARD flags, then the default will be to return a random access data model</p>
<p>Note5: If <em class="parameter"><code>stmt</code></em>
 is a SELECT statement which returns blob values (of type <a class="link" href="libgda-5.0-Gda-Value.html#GDA-TYPE-BLOB:CAPS" title="GDA_TYPE_BLOB"><code class="literal">GDA_TYPE_BLOB</code></a>), then an implicit
transaction will have been started by the database provider, and it's up to the caller to close the transaction
(which will then be locked) once all the blob ressources have been
liberated (when the returned data model is destroyed). See the section about</p>
Binary large objects (BLOBs) for more information.
<p>Also see the <a class="link" href="limitations.html" title="Limitations">provider's limitations</a>, and the</p>
<a class="link" href="data-select.html" title="Advanced GdaDataSelect usage">Advanced GdaDataSelect usage</a> sections.
<div class="refsect3">
<a name="gda-connection-statement-execute.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stmt</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> object (which can be obtained using <a class="link" href="GdaStatement.html#gda-statement-get-parameters" title="gda_statement_get_parameters ()"><code class="function">gda_statement_get_parameters()</code></a>), or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>model_usage</p></td>
<td class="parameter_description"><p>in the case where <em class="parameter"><code>stmt</code></em>
is a SELECT statement, specifies how the returned data model will be used</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>last_insert_row</p></td>
<td class="parameter_description"><p>a place to store a new <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> object which contains the values of the last inserted row, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>][<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-statement-execute.returns"></a><h4>Returns</h4>
<p>a <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-statement-execute-select"></a><h3>gda_connection_statement_execute_select ()</h3>
<pre class="programlisting"><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
gda_connection_statement_execute_select
                               (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> *stmt</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> *params</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Executes a selection command on the given connection.</p>
<p>This function returns a <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> resulting from the SELECT statement, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
if an error occurred.</p>
<p>This function is just a convenience function around the <a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()"><code class="function">gda_connection_statement_execute()</code></a>
function.</p>
<p>See the documentation of the <a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()"><code class="function">gda_connection_statement_execute()</code></a> for information
about the <em class="parameter"><code>params</code></em>
 list of parameters.</p>
<div class="refsect3">
<a name="gda-connection-statement-execute-select.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stmt</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> object (which can be obtained using <a class="link" href="GdaStatement.html#gda-statement-get-parameters" title="gda_statement_get_parameters ()"><code class="function">gda_statement_get_parameters()</code></a>), or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store an error, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-statement-execute-select.returns"></a><h4>Returns</h4>
<p>a <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> containing the data returned by the
data source, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-statement-execute-select-full"></a><h3>gda_connection_statement_execute_select_full ()</h3>
<pre class="programlisting"><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
gda_connection_statement_execute_select_full
                               (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> *stmt</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> *params</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaStatement.html#GdaStatementModelUsage" title="enum GdaStatementModelUsage"><span class="type">GdaStatementModelUsage</span></a> model_usage</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> *col_types</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Executes a selection command on the given connection.</p>
<p>This function returns a <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> resulting from the SELECT statement, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
if an error occurred.</p>
<p>This function is just a convenience function around the <a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()"><code class="function">gda_connection_statement_execute()</code></a>
function.</p>
<p>See the documentation of the <a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()"><code class="function">gda_connection_statement_execute()</code></a> for information
about the <em class="parameter"><code>params</code></em>
 list of parameters.</p>
<div class="refsect3">
<a name="gda-connection-statement-execute-select-full.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stmt</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> object (which can be obtained using <a class="link" href="GdaStatement.html#gda-statement-get-parameters" title="gda_statement_get_parameters ()"><code class="function">gda_statement_get_parameters()</code></a>), or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>model_usage</p></td>
<td class="parameter_description"><p>specifies how the returned data model will be used as a <a class="link" href="GdaStatement.html#GdaStatementModelUsage" title="enum GdaStatementModelUsage"><span class="type">GdaStatementModelUsage</span></a> enum</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>col_types</p></td>
<td class="parameter_description"><p>an array of GType to request each returned <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a>'s column's GType, terminated with the G_TYPE_NONE
value. Any value left to 0 will make the database provider determine the real GType. <em class="parameter"><code>col_types</code></em>
can also be <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no
column type is specified. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/array"><span class="acronym">array</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store an error, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-statement-execute-select-full.returns"></a><h4>Returns</h4>
<p>a <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> containing the data returned by the
data source, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-statement-execute-select-fullv"></a><h3>gda_connection_statement_execute_select_fullv ()</h3>
<pre class="programlisting"><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
gda_connection_statement_execute_select_fullv
                               (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> *stmt</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> *params</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaStatement.html#GdaStatementModelUsage" title="enum GdaStatementModelUsage"><span class="type">GdaStatementModelUsage</span></a> model_usage</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
                                <em class="parameter"><code>...</code></em>);</pre>
<p>Executes a selection command on the given connection.</p>
<p>This function returns a <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> resulting from the SELECT statement, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
if an error occurred.</p>
<p>This function is just a convenience function around the <a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()"><code class="function">gda_connection_statement_execute()</code></a>
function.</p>
<p>See the documentation of the <a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()"><code class="function">gda_connection_statement_execute()</code></a> for information
about the <em class="parameter"><code>params</code></em>
 list of parameters.</p>
<p><span class="annotation">[<a href="http://foldoc.org/skip"><span class="acronym">skip</span></a>]</span></p>
<div class="refsect3">
<a name="gda-connection-statement-execute-select-fullv.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stmt</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> object (which can be obtained using <a class="link" href="GdaStatement.html#gda-statement-get-parameters" title="gda_statement_get_parameters ()"><code class="function">gda_statement_get_parameters()</code></a>), or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>model_usage</p></td>
<td class="parameter_description"><p>specifies how the returned data model will be used as a <a class="link" href="GdaStatement.html#GdaStatementModelUsage" title="enum GdaStatementModelUsage"><span class="type">GdaStatementModelUsage</span></a> enum</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store an error, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>a (-1 terminated) list of (column number, GType) specifying for each column mentioned the GType
of the column in the returned <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-statement-execute-select-fullv.returns"></a><h4>Returns</h4>
<p>a <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> containing the data returned by the
data source, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-statement-execute-non-select"></a><h3>gda_connection_statement_execute_non_select ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
gda_connection_statement_execute_non_select
                               (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> *stmt</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> *params</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> **last_insert_row</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Executes a non-selection statement on the given connection.</p>
<p>This function returns the number of rows affected by the execution of <em class="parameter"><code>stmt</code></em>
, or -1
if an error occurred, or -2 if the connection's provider does not return the number of rows affected.</p>
<p>This function is just a convenience function around the <a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()"><code class="function">gda_connection_statement_execute()</code></a>
function. 
See the documentation of the <a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()"><code class="function">gda_connection_statement_execute()</code></a> for information
about the <em class="parameter"><code>params</code></em>
 list of parameters.</p>
<p>See <a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()"><code class="function">gda_connection_statement_execute()</code></a> form more information about <em class="parameter"><code>last_insert_row</code></em>
.</p>
<div class="refsect3">
<a name="gda-connection-statement-execute-non-select.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stmt</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> object (which can be obtained using <a class="link" href="GdaStatement.html#gda-statement-get-parameters" title="gda_statement_get_parameters ()"><code class="function">gda_statement_get_parameters()</code></a>), or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>last_insert_row</p></td>
<td class="parameter_description"><p>a place to store a new <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> object which contains the values of the last inserted row, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>][<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store an error, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-statement-execute-non-select.returns"></a><h4>Returns</h4>
<p> the number of rows affected (&gt;=0) or -1 or -2 </p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-repetitive-statement-execute"></a><h3>gda_connection_repetitive_statement_execute ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *
gda_connection_repetitive_statement_execute
                               (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                <em class="parameter"><code><a class="link" href="libgda-5.0-GdaRepetitiveStatement.html#GdaRepetitiveStatement" title="GdaRepetitiveStatement"><span class="type">GdaRepetitiveStatement</span></a> *rstmt</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaStatement.html#GdaStatementModelUsage" title="enum GdaStatementModelUsage"><span class="type">GdaStatementModelUsage</span></a> model_usage</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> *col_types</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> stop_on_error</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Executes the statement upon which <em class="parameter"><code>rstmt</code></em>
 is built. Note that as several statements can actually be executed by this
method, it is recommended to be within a transaction.</p>
<p>If <em class="parameter"><code>error</code></em>
 is not <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> and <em class="parameter"><code>stop_on_error</code></em>
 is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, then it may contain the last error which occurred.</p>
<div class="refsect3">
<a name="gda-connection-repetitive-statement-execute.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>rstmt</p></td>
<td class="parameter_description"><p>a <a class="link" href="libgda-5.0-GdaRepetitiveStatement.html#GdaRepetitiveStatement" title="GdaRepetitiveStatement"><span class="type">GdaRepetitiveStatement</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>model_usage</p></td>
<td class="parameter_description"><p>specifies how the returned data model will be used as a <a class="link" href="GdaStatement.html#GdaStatementModelUsage" title="enum GdaStatementModelUsage"><span class="type">GdaStatementModelUsage</span></a> enum</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>col_types</p></td>
<td class="parameter_description"><p>an array of GType to request each returned GdaDataModel's column's GType, see <a class="link" href="GdaConnection.html#gda-connection-statement-execute-select-full" title="gda_connection_statement_execute_select_full ()"><code class="function">gda_connection_statement_execute_select_full()</code></a> for more information. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/array"><span class="acronym">array</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>stop_on_error</p></td>
<td class="parameter_description"><p>set to TRUE if the method has to stop on the first error.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-repetitive-statement-execute.returns"></a><h4>Returns</h4>
<p>a new list of <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> pointers (see <a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()"><code class="function">gda_connection_statement_execute()</code></a> for more information about what they
represent), one for each actual execution of the statement upon which <em class="parameter"><code>rstmt</code></em>
is built. If <em class="parameter"><code>stop_on_error</code></em>
is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, then
the list may contain some <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> pointers which refer to statements which failed to execute. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> GObject]</span></p>
</div>
<p class="since">Since: 4.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-batch-execute"></a><h3>gda_connection_batch_execute ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *
gda_connection_batch_execute (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                              <em class="parameter"><code><a class="link" href="GdaBatch.html" title="GdaBatch"><span class="type">GdaBatch</span></a> *batch</code></em>,
                              <em class="parameter"><code><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> *params</code></em>,
                              <em class="parameter"><code><a class="link" href="GdaStatement.html#GdaStatementModelUsage" title="enum GdaStatementModelUsage"><span class="type">GdaStatementModelUsage</span></a> model_usage</code></em>,
                              <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Executes all the statements contained in <em class="parameter"><code>batch</code></em>
 (in the order in which they were added to <em class="parameter"><code>batch</code></em>
), and
returns a list of <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> objects, at most one <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> for each statement; see <a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()"><code class="function">gda_connection_statement_execute()</code></a>
for details about the returned objects.</p>
<p>If one of the statement fails, then none of the subsequent statement will be executed, and the method returns
the list of <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> created by the correct execution of the previous statements. If a transaction is required,
then it should be started before calling this method.</p>
<div class="refsect3">
<a name="gda-connection-batch-execute.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>batch</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaBatch.html" title="GdaBatch"><span class="type">GdaBatch</span></a> object which contains all the statements to execute</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> object (which can be obtained using <a class="link" href="GdaBatch.html#gda-batch-get-parameters" title="gda_batch_get_parameters ()"><code class="function">gda_batch_get_parameters()</code></a>), or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>model_usage</p></td>
<td class="parameter_description"><p>specifies how the returned data model(s) will be used, as a <a class="link" href="GdaStatement.html#GdaStatementModelUsage" title="enum GdaStatementModelUsage"><span class="type">GdaStatementModelUsage</span></a> enum</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-batch-execute.returns"></a><h4>Returns</h4>
<p>a new list of <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> objects. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> GObject]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-begin-transaction"></a><h3>gda_connection_begin_transaction ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_begin_transaction (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                  <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
                                  <em class="parameter"><code><a class="link" href="GdaTransactionStatus.html#GdaTransactionIsolation" title="enum GdaTransactionIsolation"><span class="type">GdaTransactionIsolation</span></a> level</code></em>,
                                  <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Starts a transaction on the data source, identified by the
<em class="parameter"><code>name</code></em>
 parameter.</p>
<p>Before starting a transaction, you can check whether the underlying
provider does support transactions or not by using the
<a class="link" href="GdaConnection.html#gda-connection-supports-feature" title="gda_connection_supports_feature ()"><code class="function">gda_connection_supports_feature()</code></a> function.</p>
<div class="refsect3">
<a name="gda-connection-begin-transaction.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>the name of the transation to start, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>level</p></td>
<td class="parameter_description"><p>the requested transaction level (<a class="link" href="GdaTransactionStatus.html#GDA-TRANSACTION-ISOLATION-UNKNOWN:CAPS"><code class="literal">GDA_TRANSACTION_ISOLATION_UNKNOWN</code></a> if not specified)</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-begin-transaction.returns"></a><h4>Returns</h4>
<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the transaction was started successfully, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-commit-transaction"></a><h3>gda_connection_commit_transaction ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_commit_transaction (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                   <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
                                   <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Commits the given transaction to the backend database. You need to call
<a class="link" href="GdaConnection.html#gda-connection-begin-transaction" title="gda_connection_begin_transaction ()"><code class="function">gda_connection_begin_transaction()</code></a> first.</p>
<div class="refsect3">
<a name="gda-connection-commit-transaction.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>the name of the transation to commit, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-commit-transaction.returns"></a><h4>Returns</h4>
<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the transaction was finished successfully,
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-rollback-transaction"></a><h3>gda_connection_rollback_transaction ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_rollback_transaction (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                     <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
                                     <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Rollbacks the given transaction. This means that all changes
made to the underlying data source since the last call to
<a class="link" href="GdaConnection.html#gda-connection-begin-transaction" title="gda_connection_begin_transaction ()"><code class="function">gda_connection_begin_transaction()</code></a> or <a class="link" href="GdaConnection.html#gda-connection-commit-transaction" title="gda_connection_commit_transaction ()"><code class="function">gda_connection_commit_transaction()</code></a>
will be discarded.</p>
<div class="refsect3">
<a name="gda-connection-rollback-transaction.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>the name of the transation to commit, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-rollback-transaction.returns"></a><h4>Returns</h4>
<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the operation was successful, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-add-savepoint"></a><h3>gda_connection_add_savepoint ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_add_savepoint (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                              <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
                              <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Adds a SAVEPOINT named <em class="parameter"><code>name</code></em>
.</p>
<div class="refsect3">
<a name="gda-connection-add-savepoint.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>name of the savepoint to add. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-add-savepoint.returns"></a><h4>Returns</h4>
<p> TRUE if no error occurred</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-rollback-savepoint"></a><h3>gda_connection_rollback_savepoint ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_rollback_savepoint (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                   <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
                                   <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Rollback all the modifications made after the SAVEPOINT named <em class="parameter"><code>name</code></em>
.</p>
<div class="refsect3">
<a name="gda-connection-rollback-savepoint.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>name of the savepoint to rollback to. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-rollback-savepoint.returns"></a><h4>Returns</h4>
<p> TRUE if no error occurred</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-delete-savepoint"></a><h3>gda_connection_delete_savepoint ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_delete_savepoint (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                 <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
                                 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Delete the SAVEPOINT named <em class="parameter"><code>name</code></em>
 when not used anymore.</p>
<div class="refsect3">
<a name="gda-connection-delete-savepoint.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>name</p></td>
<td class="parameter_description"><p>name of the savepoint to delete. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-delete-savepoint.returns"></a><h4>Returns</h4>
<p> TRUE if no error occurred</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-async-statement-execute"></a><h3>gda_connection_async_statement_execute ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
gda_connection_async_statement_execute
                               (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> *stmt</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> *params</code></em>,
                                <em class="parameter"><code><a class="link" href="GdaStatement.html#GdaStatementModelUsage" title="enum GdaStatementModelUsage"><span class="type">GdaStatementModelUsage</span></a> model_usage</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> *col_types</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> need_last_insert_row</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>This method is similar to <a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()"><code class="function">gda_connection_statement_execute()</code></a> but is asynchronous as it method returns
immediately with a task ID. It's up to the caller to use <a class="link" href="GdaConnection.html#gda-connection-async-fetch-result" title="gda_connection_async_fetch_result ()"><code class="function">gda_connection_async_fetch_result()</code></a> regularly to check
if the statement's execution is finished.</p>
<p>It is possible to call the method several times to request several statements to be executed asynchronously, the
statements will be executed in the order in which they were requested.</p>
<p>The parameters, if present, are copied and can be discarded or modified before the statement is actually executed.
The <em class="parameter"><code>stmt</code></em>
 object is not copied but simply referenced (for performance reasons), and if it is modified before
it is actually executed, then its execution will not occur. It is however safe to call <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> on it if
it's not needed anymore.</p>
<p>The execution failure of any statement has no impact on the execution of other statements except for example if
the connection has a transaction started and the failure invalidates the transaction (as decided by the database
server).</p>
<p>Note that for asynchronous calls to succeed, it is gererally necessary to specify the
<a class="link" href="GdaConnection.html#GDA-CONNECTION-OPTIONS-THREAD-ISOLATED:CAPS"><code class="literal">GDA_CONNECTION_OPTIONS_THREAD_ISOLATED</code></a> flag when opening the connection to be sure it is opened in a separate thread
in which asynchronous calls are made (failing to use this flag make the asynchronous call dependant on the database
provider implementation and at the moment none support this feature).</p>
<div class="refsect3">
<a name="gda-connection-async-statement-execute.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stmt</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> object (which can be obtained using <a class="link" href="GdaStatement.html#gda-statement-get-parameters" title="gda_statement_get_parameters ()"><code class="function">gda_statement_get_parameters()</code></a>), or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>model_usage</p></td>
<td class="parameter_description"><p>in the case where <em class="parameter"><code>stmt</code></em>
is a SELECT statement, specifies how the returned data model will be used</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>col_types</p></td>
<td class="parameter_description"><p>an array of GType to request each returned <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a>'s column's GType, terminated with the G_TYPE_NONE. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/array"><span class="acronym">array</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>need_last_insert_row</p></td>
<td class="parameter_description"><p>TRUE if the values of the last interted row must be computed</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-async-statement-execute.returns"></a><h4>Returns</h4>
<p> a task ID, or 0 if an error occurred (not an error regarding <em class="parameter"><code>stmt</code></em>
itself as its execution has not yet started
but any other error)</p>
</div>
<p class="since">Since: 4.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-async-fetch-result"></a><h3>gda_connection_async_fetch_result ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="returnvalue">GObject</span></a> *
gda_connection_async_fetch_result (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                   <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> task_id</code></em>,
                                   <em class="parameter"><code><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> **last_insert_row</code></em>,
                                   <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Use this method to obtain the result of the execution of a statement which has been executed asynchronously by
calling <a class="link" href="GdaConnection.html#gda-connection-async-statement-execute" title="gda_connection_async_statement_execute ()"><code class="function">gda_connection_async_statement_execute()</code></a>. This function is non locking and will return <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> (and no
error will be set) if the statement has not been executed yet.</p>
<p>If the statement has been executed, this method returns the same value as <a class="link" href="GdaConnection.html#gda-connection-statement-execute" title="gda_connection_statement_execute ()"><code class="function">gda_connection_statement_execute()</code></a>
would have if the statement had been
executed synchronously.</p>
<div class="refsect3">
<a name="gda-connection-async-fetch-result.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>task_id</p></td>
<td class="parameter_description"><p>a task ID returned by <a class="link" href="GdaConnection.html#gda-connection-async-statement-execute" title="gda_connection_async_statement_execute ()"><code class="function">gda_connection_async_statement_execute()</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>last_insert_row</p></td>
<td class="parameter_description"><p>a place to store a new <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> object which contains the values of the last inserted row, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>][<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-async-fetch-result.returns"></a><h4>Returns</h4>
<p>a <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
<p class="since">Since: 4.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-async-cancel"></a><h3>gda_connection_async_cancel ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_async_cancel (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                             <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> task_id</code></em>,
                             <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Requests that a task be cancelled. This operation may of may not have any effect
depending on the task's status, even if it returns <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>. If it returns <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>,
then the task has not been cancelled.</p>
<div class="refsect3">
<a name="gda-connection-async-cancel.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>task_id</p></td>
<td class="parameter_description"><p>a task ID returned by <a class="link" href="GdaConnection.html#gda-connection-async-statement-execute" title="gda_connection_async_statement_execute ()"><code class="function">gda_connection_async_statement_execute()</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-async-cancel.returns"></a><h4>Returns</h4>
<p> TRUE if no error occurred</p>
</div>
<p class="since">Since: 4.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-get-transaction-status"></a><h3>gda_connection_get_transaction_status ()</h3>
<pre class="programlisting"><a class="link" href="GdaTransactionStatus.html" title="GdaTransactionStatus"><span class="returnvalue">GdaTransactionStatus</span></a> *
gda_connection_get_transaction_status (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>);</pre>
<p>Get the status of <em class="parameter"><code>cnc</code></em>
 regarding transactions. The returned object should not be modified
or destroyed; however it may be modified or destroyed by the connection itself.</p>
<p>If <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then no transaction has been associated with <em class="parameter"><code>cnc</code></em>
</p>
<div class="refsect3">
<a name="gda-connection-get-transaction-status.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-get-transaction-status.returns"></a><h4>Returns</h4>
<p>a <a class="link" href="GdaTransactionStatus.html" title="GdaTransactionStatus"><span class="type">GdaTransactionStatus</span></a> object, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-get-options"></a><h3>gda_connection_get_options ()</h3>
<pre class="programlisting"><a class="link" href="GdaConnection.html#GdaConnectionOptions" title="enum GdaConnectionOptions"><span class="returnvalue">GdaConnectionOptions</span></a>
gda_connection_get_options (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>);</pre>
<p>Gets the <a class="link" href="GdaConnection.html#GdaConnectionOptions" title="enum GdaConnectionOptions"><span class="type">GdaConnectionOptions</span></a> used to open this connection.</p>
<div class="refsect3">
<a name="gda-connection-get-options.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-get-options.returns"></a><h4>Returns</h4>
<p> the connection options.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-get-provider"></a><h3>gda_connection_get_provider ()</h3>
<pre class="programlisting"><a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="returnvalue">GdaServerProvider</span></a> *
gda_connection_get_provider (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>);</pre>
<p>Gets a pointer to the <a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="type">GdaServerProvider</span></a> object used to access the database</p>
<div class="refsect3">
<a name="gda-connection-get-provider.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-get-provider.returns"></a><h4>Returns</h4>
<p>the <a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="type">GdaServerProvider</span></a> (NEVER NULL). </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-get-provider-name"></a><h3>gda_connection_get_provider_name ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gda_connection_get_provider_name (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>);</pre>
<p>Gets the name (identifier) of the database provider used by <em class="parameter"><code>cnc</code></em>
</p>
<div class="refsect3">
<a name="gda-connection-get-provider-name.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-get-provider-name.returns"></a><h4>Returns</h4>
<p> a non modifiable string</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-get-dsn"></a><h3>gda_connection_get_dsn ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gda_connection_get_dsn (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>);</pre>
<div class="refsect3">
<a name="gda-connection-get-dsn.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-get-dsn.returns"></a><h4>Returns</h4>
<p> the data source name the connection object is connected
to.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-get-cnc-string"></a><h3>gda_connection_get_cnc_string ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gda_connection_get_cnc_string (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>);</pre>
<p>Gets the connection string used to open this connection.</p>
<p>The connection string is the string sent over to the underlying
database provider, which describes the parameters to be used
to open a connection on the underlying data source.</p>
<div class="refsect3">
<a name="gda-connection-get-cnc-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-get-cnc-string.returns"></a><h4>Returns</h4>
<p> the connection string used when opening the connection.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-get-authentication"></a><h3>gda_connection_get_authentication ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
gda_connection_get_authentication (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>);</pre>
<p>Gets the user name used to open this connection.</p>
<div class="refsect3">
<a name="gda-connection-get-authentication.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-get-authentication.returns"></a><h4>Returns</h4>
<p> the user name.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-get-date-format"></a><h3>gda_connection_get_date_format ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_get_date_format (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#GDateDMY"><span class="type">GDateDMY</span></a> *out_first</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#GDateDMY"><span class="type">GDateDMY</span></a> *out_second</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html#GDateDMY"><span class="type">GDateDMY</span></a> *out_third</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *out_sep</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>This function allows you to determine the actual format for the date values.</p>
<div class="refsect3">
<a name="gda-connection-get-date-format.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out_first</p></td>
<td class="parameter_description"><p>the place to store the first part of the date, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>out_second</p></td>
<td class="parameter_description"><p>the place to store the second part of the date, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>out_third</p></td>
<td class="parameter_description"><p>the place to store the third part of the date, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>out_sep</p></td>
<td class="parameter_description"><p>the place to store the separator (used between year, month and day parts) part of the date, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-get-date-format.returns"></a><h4>Returns</h4>
<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if no error occurred</p>
</div>
<p class="since">Since: 5.2</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-get-events"></a><h3>gda_connection_get_events ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
gda_connection_get_events (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>);</pre>
<p>Retrieves a list of the last errors occurred during the connection. The returned list is
chronologically ordered such as that the most recent event is the <a class="link" href="GdaConnectionEvent.html" title="GdaConnectionEvent"><span class="type">GdaConnectionEvent</span></a> of the first node.</p>
<p>Warning: the <em class="parameter"><code>cnc</code></em>
 object may change the list if connection events occur</p>
<div class="refsect3">
<a name="gda-connection-get-events.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-get-events.returns"></a><h4>Returns</h4>
<p>a <a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <a class="link" href="GdaConnectionEvent.html" title="GdaConnectionEvent"><span class="type">GdaConnectionEvent</span></a> objects (the list should not be modified). </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>][<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> Gda.ConnectionEvent]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-create-operation"></a><h3>gda_connection_create_operation ()</h3>
<pre class="programlisting"><a class="link" href="GdaServerOperation.html" title="GdaServerOperation"><span class="returnvalue">GdaServerOperation</span></a> *
gda_connection_create_operation (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                 <em class="parameter"><code><a class="link" href="GdaServerOperation.html#GdaServerOperationType" title="enum GdaServerOperationType"><span class="type">GdaServerOperationType</span></a> type</code></em>,
                                 <em class="parameter"><code><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> *options</code></em>,
                                 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Creates a new <a class="link" href="GdaServerOperation.html" title="GdaServerOperation"><span class="type">GdaServerOperation</span></a> object which can be modified in order 
to perform the type type of action. It is a wrapper around the <a class="link" href="GdaServerProvider.html#gda-server-provider-create-operation" title="gda_server_provider_create_operation ()"><code class="function">gda_server_provider_create_operation()</code></a>
method.</p>
<div class="refsect3">
<a name="gda-connection-create-operation.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>type</p></td>
<td class="parameter_description"><p>the type of operation requested</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>options</p></td>
<td class="parameter_description"><p>an optional list of parameters. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store an error, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-create-operation.returns"></a><h4>Returns</h4>
<p>a new <a class="link" href="GdaServerOperation.html" title="GdaServerOperation"><span class="type">GdaServerOperation</span></a> object, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> in the connection's provider does not support the <em class="parameter"><code>type</code></em>
type
of operation or if an error occurred. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-perform-operation"></a><h3>gda_connection_perform_operation ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_perform_operation (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                  <em class="parameter"><code><a class="link" href="GdaServerOperation.html" title="GdaServerOperation"><span class="type">GdaServerOperation</span></a> *op</code></em>,
                                  <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Performs the operation described by <em class="parameter"><code>op</code></em>
 (which should have been created using
<a class="link" href="GdaConnection.html#gda-connection-create-operation" title="gda_connection_create_operation ()"><code class="function">gda_connection_create_operation()</code></a>). It is a wrapper around the <a class="link" href="GdaServerProvider.html#gda-server-provider-perform-operation" title="gda_server_provider_perform_operation ()"><code class="function">gda_server_provider_perform_operation()</code></a>
method.</p>
<div class="refsect3">
<a name="gda-connection-perform-operation.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>op</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaServerOperation.html" title="GdaServerOperation"><span class="type">GdaServerOperation</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store an error, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-perform-operation.returns"></a><h4>Returns</h4>
<p> TRUE if no error occurred</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-supports-feature"></a><h3>gda_connection_supports_feature ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_supports_feature (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                 <em class="parameter"><code><a class="link" href="GdaConnection.html#GdaConnectionFeature" title="enum GdaConnectionFeature"><span class="type">GdaConnectionFeature</span></a> feature</code></em>);</pre>
<p>Asks the underlying provider for if a specific feature is supported.</p>
<div class="refsect3">
<a name="gda-connection-supports-feature.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>feature</p></td>
<td class="parameter_description"><p>feature to ask for.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-supports-feature.returns"></a><h4>Returns</h4>
<p> <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the provider supports it, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if not.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-get-meta-store"></a><h3>gda_connection_get_meta_store ()</h3>
<pre class="programlisting"><a class="link" href="GdaMetaStore.html" title="GdaMetaStore"><span class="returnvalue">GdaMetaStore</span></a> *
gda_connection_get_meta_store (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>);</pre>
<p>Get or initializes the <a class="link" href="GdaMetaStore.html" title="GdaMetaStore"><span class="type">GdaMetaStore</span></a> associated to <em class="parameter"><code>cnc</code></em>
</p>
<div class="refsect3">
<a name="gda-connection-get-meta-store.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-get-meta-store.returns"></a><h4>Returns</h4>
<p>a <a class="link" href="GdaMetaStore.html" title="GdaMetaStore"><span class="type">GdaMetaStore</span></a> object. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-update-meta-store"></a><h3>gda_connection_update_meta_store ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_update_meta_store (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                  <em class="parameter"><code><a class="link" href="GdaMetaStore.html#GdaMetaContext" title="GdaMetaContext"><span class="type">GdaMetaContext</span></a> *context</code></em>,
                                  <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Updates <em class="parameter"><code>cnc</code></em>
's associated <a class="link" href="GdaMetaStore.html" title="GdaMetaStore"><span class="type">GdaMetaStore</span></a>. If <em class="parameter"><code>context</code></em>
 is not <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then only the parts described by
<em class="parameter"><code>context</code></em>
 will be updated, and if it is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then the complete meta store will be updated. Detailed
explanations follow:</p>
<p>In order to keep the meta store's contents in a consistent state, the update process involves updating
the contents of all the tables related to one where the contents change. For example the "_columns"
table (which lists all the columns of a table) depends on the "_tables" table (which lists all the tables
in a schema), so if a row is added, removed or modified in the "_tables", then the "_columns" table's contents
needs to be updated as well regarding that row.</p>
<p>If <em class="parameter"><code>context</code></em>
 is <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then the update process will simply overwrite any data that was present in all the
meta store's tables with new (up to date) data even if nothing has changed, without having to build the
tables' dependency tree. This is the recommended way of proceeding when dealing with a meta store which
might be outdated.</p>
<p>On the other hand, if <em class="parameter"><code>context</code></em>
 is not <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then a tree of the dependencies has to be built (depending on
<em class="parameter"><code>context</code></em>
) and only some parts of the meta store are updated following that dependencies tree. Specifying a
context may be useful for example in the following situations:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>One knows that a database object has changed (for example a table created), and
                  may use the <em class="parameter"><code>context</code></em> to request that only the information about that table be updated
            </p></li>
<li class="listitem"><p>One is only interested in the list of views, and may request that only the information
                  about views may be updated</p></li>
</ul></div>
<p>When <em class="parameter"><code>context</code></em>
 is not <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, and contains specified SQL identifiers (for example the "table_name" of the "_tables"
table), then each SQL identifier has to match the convention the <a class="link" href="GdaMetaStore.html" title="GdaMetaStore"><span class="type">GdaMetaStore</span></a> has adopted regarding
case sensitivity, using <a class="link" href="GdaConnection.html#gda-connection-quote-sql-identifier" title="gda_connection_quote_sql_identifier ()"><code class="function">gda_connection_quote_sql_identifier()</code></a> or <a class="link" href="GdaMetaStore.html#gda-meta-store-sql-identifier-quote" title="gda_meta_store_sql_identifier_quote ()"><code class="function">gda_meta_store_sql_identifier_quote()</code></a>.</p>
<p>see the <a class="link" href="information_schema.html#information_schema:sql_identifiers" title="SQL identifiers">
meta data section about SQL identifiers</a> for more information, and the documentation about the
<a class="link" href="GdaSqlParser.html#gda-sql-identifier-quote" title="gda_sql_identifier_quote ()"><code class="function">gda_sql_identifier_quote()</code></a> function which will be most useful.</p>
<p>Note however that usually <span class="emphasis"><em>more</em></span> information will be updated than strictly requested by
the <em class="parameter"><code>context</code></em>
 argument.</p>
<p>For more information, see the <a class="link" href="information_schema.html" title="Database structure">Database structure</a> section, and
the <a class="link" href="howto-meta2.html" title="Update the meta data about a table">Update the meta data about a table</a> howto.</p>
<div class="refsect3">
<a name="gda-connection-update-meta-store.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>description of which part of <em class="parameter"><code>cnc</code></em>
's associated <a class="link" href="GdaMetaStore.html" title="GdaMetaStore"><span class="type">GdaMetaStore</span></a> should be updated, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-update-meta-store.returns"></a><h4>Returns</h4>
<p> TRUE if no error occurred</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-get-meta-store-data"></a><h3>gda_connection_get_meta_store_data ()</h3>
<pre class="programlisting"><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
gda_connection_get_meta_store_data (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                    <em class="parameter"><code><a class="link" href="GdaConnection.html#GdaConnectionMetaType" title="enum GdaConnectionMetaType"><span class="type">GdaConnectionMetaType</span></a> meta_type</code></em>,
                                    <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
                                    <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> nb_filters</code></em>,
                                    <em class="parameter"><code>...</code></em>);</pre>
<p>Retrieves data stored in <em class="parameter"><code>cnc</code></em>
's associated <a class="link" href="GdaMetaStore.html" title="GdaMetaStore"><span class="type">GdaMetaStore</span></a> object. This method is useful
to easily get some information about the meta-data associated to <em class="parameter"><code>cnc</code></em>
, such as the list of
tables, views, and other database objects.</p>
<p>Note: it's up to the caller to make sure the information contained within <em class="parameter"><code>cnc</code></em>
's associated <a class="link" href="GdaMetaStore.html" title="GdaMetaStore"><span class="type">GdaMetaStore</span></a>
is up to date using <a class="link" href="GdaConnection.html#gda-connection-update-meta-store" title="gda_connection_update_meta_store ()"><code class="function">gda_connection_update_meta_store()</code></a> (it can become outdated if the database's schema
is modified).</p>
<p>For more information about the returned data model's attributes, or about the <em class="parameter"><code>meta_type</code></em>
 and ... filter arguments,
see <a href="connection.html#GdaConnectionMetaTypeHead">this description</a>.</p>
<p>Also, when using filters involving data which are SQL identifiers, make sure each SQL identifier
is represented using the <a class="link" href="GdaMetaStore.html" title="GdaMetaStore"><span class="type">GdaMetaStore</span></a> convention, using <a class="link" href="GdaMetaStore.html#gda-meta-store-sql-identifier-quote" title="gda_meta_store_sql_identifier_quote ()"><code class="function">gda_meta_store_sql_identifier_quote()</code></a> or
<a class="link" href="GdaMetaStore.html#gda-meta-store-sql-identifier-quote" title="gda_meta_store_sql_identifier_quote ()"><code class="function">gda_meta_store_sql_identifier_quote()</code></a>.</p>
<p>See the <a class="link" href="information_schema.html#information_schema:sql_identifiers" title="SQL identifiers">
meta data section about SQL identifiers</a> for more information, and the documentation about the
<a class="link" href="GdaSqlParser.html#gda-sql-identifier-quote" title="gda_sql_identifier_quote ()"><code class="function">gda_sql_identifier_quote()</code></a> function which will be most useful.</p>
<div class="refsect3">
<a name="gda-connection-get-meta-store-data.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>meta_type</p></td>
<td class="parameter_description"><p>describes which data to get.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>nb_filters</p></td>
<td class="parameter_description"><p>the number of filters in the @... argument</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>a list of (filter name (gchar *), filter value (GValue*)) pairs specifying
the filter to apply to the returned data model's contents (there must be <em class="parameter"><code>nb_filters</code></em>
pairs)</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-get-meta-store-data.returns"></a><h4>Returns</h4>
<p>a <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> containing the data required. The caller is responsible
for freeing the returned model using <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-get-meta-store-data-v"></a><h3>gda_connection_get_meta_store_data_v ()</h3>
<pre class="programlisting"><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
gda_connection_get_meta_store_data_v (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                      <em class="parameter"><code><a class="link" href="GdaConnection.html#GdaConnectionMetaType" title="enum GdaConnectionMetaType"><span class="type">GdaConnectionMetaType</span></a> meta_type</code></em>,
                                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *filters</code></em>,
                                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>see <a class="link" href="GdaConnection.html#gda-connection-get-meta-store-data" title="gda_connection_get_meta_store_data ()"><span class="type">gda_connection_get_meta_store_data</span></a></p>
<div class="refsect3">
<a name="gda-connection-get-meta-store-data-v.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>meta_type</p></td>
<td class="parameter_description"><p>describes which data to get.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>filters</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <a class="link" href="GdaHolder.html" title="GdaHolder"><span class="type">GdaHolder</span></a> objects. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> GdaHolder]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-get-meta-store-data-v.returns"></a><h4>Returns</h4>
<p>a <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> containing the data required. The caller is responsible
for freeing the returned model using <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-parse-sql-string"></a><h3>gda_connection_parse_sql_string ()</h3>
<pre class="programlisting"><a class="link" href="GdaStatement.html" title="GdaStatement"><span class="returnvalue">GdaStatement</span></a> *
gda_connection_parse_sql_string (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                 <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *sql</code></em>,
                                 <em class="parameter"><code><a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a> **params</code></em>,
                                 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>This function helps to parse a SQL string which uses parameters and store them at <em class="parameter"><code>params</code></em>
.</p>
<div class="refsect3">
<a name="gda-connection-parse-sql-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>sql</p></td>
<td class="parameter_description"><p>an SQL command to parse, not <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>params</p></td>
<td class="parameter_description"><p>a place to store a new <a class="link" href="GdaSet.html" title="GdaSet"><span class="type">GdaSet</span></a>, for parameters used in SQL command, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>][<a href="http://foldoc.org/allow-none"><span class="acronym">allow-none</span></a>][<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-parse-sql-string.returns"></a><h4>Returns</h4>
<p>a <a class="link" href="GdaStatement.html" title="GdaStatement"><span class="type">GdaStatement</span></a> representing the SQL command, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
<p class="since">Since: 4.2.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-execute-select-command"></a><h3>gda_connection_execute_select_command ()</h3>
<pre class="programlisting"><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
gda_connection_execute_select_command (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                       <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *sql</code></em>,
                                       <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Execute a SQL SELECT command over an opened connection.</p>
<div class="refsect3">
<a name="gda-connection-execute-select-command.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>an opened connection</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sql</p></td>
<td class="parameter_description"><p>a query statement that must begin with "SELECT"</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-execute-select-command.returns"></a><h4>Returns</h4>
<p>a new <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> if successful, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> otherwise. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
<p class="since">Since: 4.2.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-execute-non-select-command"></a><h3>gda_connection_execute_non_select_command ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
gda_connection_execute_non_select_command
                               (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *sql</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>This is a convenience function to execute a SQL command over the opened connection. For the
returned value, see <a class="link" href="GdaConnection.html#gda-connection-statement-execute-non-select" title="gda_connection_statement_execute_non_select ()"><code class="function">gda_connection_statement_execute_non_select()</code></a>'s documentation.</p>
<div class="refsect3">
<a name="gda-connection-execute-non-select-command.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>an opened connection</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sql</p></td>
<td class="parameter_description"><p>a query statement that must not begin with "SELECT"</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-execute-non-select-command.returns"></a><h4>Returns</h4>
<p> the number of rows affected or -1, or -2</p>
</div>
<p class="since">Since: 4.2.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-insert-row-into-table"></a><h3>gda_connection_insert_row_into_table ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_insert_row_into_table (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                      <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *table</code></em>,
                                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
                                      <em class="parameter"><code>...</code></em>);</pre>
<p>This is a convenience function, which creates an INSERT statement and executes it using the values
provided. It internally relies on variables which makes it immune to SQL injection problems.</p>
<p>The equivalent SQL command is: INSERT INTO &lt;table&gt; (&lt;column_name&gt; [,...]) VALUES (&lt;column_name&gt; = &lt;new_value&gt; [,...]).</p>
<div class="refsect3">
<a name="gda-connection-insert-row-into-table.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>an opened connection</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>table</p></td>
<td class="parameter_description"><p>table's name to insert into</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>a list of string/GValue pairs with the name of the column to use and the
GValue pointer containing the value to insert for the column (value can be <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>), finished by a <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. There must be
at least one column name and value</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-insert-row-into-table.returns"></a><h4>Returns</h4>
<p> TRUE if no error occurred</p>
</div>
<p class="since">Since: 4.2.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-insert-row-into-table-v"></a><h3>gda_connection_insert_row_into_table_v ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_insert_row_into_table_v
                               (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *table</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *col_names</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *values</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p><em class="parameter"><code>col_names</code></em>
 and <em class="parameter"><code>values</code></em>
 must have length (&gt;= 1).</p>
<p>This is a convenience function, which creates an INSERT statement and executes it using the values
provided. It internally relies on variables which makes it immune to SQL injection problems.</p>
<p>The equivalent SQL command is: INSERT INTO &lt;table&gt; (&lt;column_name&gt; [,...]) VALUES (&lt;column_name&gt; = &lt;new_value&gt; [,...]).</p>
<div class="refsect3">
<a name="gda-connection-insert-row-into-table-v.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>an opened connection</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>table</p></td>
<td class="parameter_description"><p>table's name to insert into</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>col_names</p></td>
<td class="parameter_description"><p>a list of column names (as const gchar *). </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> utf8]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>values</p></td>
<td class="parameter_description"><p>a list of values (as <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a>). </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> GValue]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-insert-row-into-table-v.returns"></a><h4>Returns</h4>
<p> TRUE if no error occurred, FALSE otherwise</p>
</div>
<p class="since">Since: 4.2.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-update-row-in-table"></a><h3>gda_connection_update_row_in_table ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_update_row_in_table (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                    <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *table</code></em>,
                                    <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *condition_column_name</code></em>,
                                    <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> *condition_value</code></em>,
                                    <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
                                    <em class="parameter"><code>...</code></em>);</pre>
<p>This is a convenience function, which creates an UPDATE statement and executes it using the values
provided. It internally relies on variables which makes it immune to SQL injection problems.</p>
<p>The equivalent SQL command is: UPDATE &lt;table&gt; SET &lt;column_name&gt; = &lt;new_value&gt; [,...] WHERE &lt;condition_column_name&gt; = &lt;condition_value&gt;.</p>
<div class="refsect3">
<a name="gda-connection-update-row-in-table.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>an opened connection</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>table</p></td>
<td class="parameter_description"><p>the table's name with the row's values to be updated</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>condition_column_name</p></td>
<td class="parameter_description"><p>the name of the column to used in the WHERE condition clause</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>condition_value</p></td>
<td class="parameter_description"><p>the <em class="parameter"><code>condition_column_type</code></em>
's GType</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>a list of string/GValue pairs with the name of the column to use and the
GValue pointer containing the value to update the column to (value can be <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>), finished by a <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. There must be
at least one column name and value</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-update-row-in-table.returns"></a><h4>Returns</h4>
<p> TRUE if no error occurred, FALSE otherwise</p>
</div>
<p class="since">Since: 4.2.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-update-row-in-table-v"></a><h3>gda_connection_update_row_in_table_v ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_update_row_in_table_v (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                      <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *table</code></em>,
                                      <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *condition_column_name</code></em>,
                                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> *condition_value</code></em>,
                                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *col_names</code></em>,
                                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *values</code></em>,
                                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p><em class="parameter"><code>col_names</code></em>
 and <em class="parameter"><code>values</code></em>
 must have length (&gt;= 1).</p>
<p>This is a convenience function, which creates an UPDATE statement and executes it using the values
provided. It internally relies on variables which makes it immune to SQL injection problems.</p>
<p>The equivalent SQL command is: UPDATE &lt;table&gt; SET &lt;column_name&gt; = &lt;new_value&gt; [,...] WHERE &lt;condition_column_name&gt; = &lt;condition_value&gt;.</p>
<div class="refsect3">
<a name="gda-connection-update-row-in-table-v.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>an opened connection</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>table</p></td>
<td class="parameter_description"><p>the table's name with the row's values to be updated</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>condition_column_name</p></td>
<td class="parameter_description"><p>the name of the column to used in the WHERE condition clause</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>condition_value</p></td>
<td class="parameter_description"><p>the <em class="parameter"><code>condition_column_type</code></em>
's GType</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>col_names</p></td>
<td class="parameter_description"><p>a list of column names (as const gchar *). </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> utf8]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>values</p></td>
<td class="parameter_description"><p>a list of values (as <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a>). </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> GValue]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-update-row-in-table-v.returns"></a><h4>Returns</h4>
<p> TRUE if no error occurred, FALSE otherwise</p>
</div>
<p class="since">Since: 4.2.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-connection-delete-row-from-table"></a><h3>gda_connection_delete_row_from_table ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gda_connection_delete_row_from_table (<em class="parameter"><code><a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc</code></em>,
                                      <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *table</code></em>,
                                      <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *condition_column_name</code></em>,
                                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> *condition_value</code></em>,
                                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>This is a convenience function, which creates a DELETE statement and executes it using the values
provided. It internally relies on variables which makes it immune to SQL injection problems.</p>
<p>The equivalent SQL command is: DELETE FROM &lt;table&gt; WHERE &lt;condition_column_name&gt; = &lt;condition_value&gt;.</p>
<div class="refsect3">
<a name="gda-connection-delete-row-from-table.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>an opened connection</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>table</p></td>
<td class="parameter_description"><p>the table's name with the row's values to be updated</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>condition_column_name</p></td>
<td class="parameter_description"><p>the name of the column to used in the WHERE condition clause</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>condition_value</p></td>
<td class="parameter_description"><p>the <em class="parameter"><code>condition_column_type</code></em>
's GType</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-connection-delete-row-from-table.returns"></a><h4>Returns</h4>
<p> TRUE if no error occurred, FALSE otherwise</p>
</div>
<p class="since">Since: 4.2.3</p>
</div>
</div>
<div class="refsect1">
<a name="GdaConnection.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GdaConnection-struct"></a><h3>GdaConnection</h3>
<pre class="programlisting">typedef struct _GdaConnection GdaConnection;</pre>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnectionOptions"></a><h3>enum GdaConnectionOptions</h3>
<p>Specifies some aspects of a connection when opening it.</p>
<p>Additional information about the GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE flag:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>For example without this flag, if the table
      name specified in a <a class="link" href="GdaServerOperation.html" title="GdaServerOperation"><span class="type">GdaServerOperation</span></a> to create a table is
      <span class="emphasis"><em>MyTable</em></span>, then usually the database will create a table named
      <span class="emphasis"><em>mytable</em></span>, whereas with this flag, the table will be created
      as <span class="emphasis"><em>MyTable</em></span> (note that in the end the database may still decide
      to name the table <span class="emphasis"><em>mytable</em></span> or differently if it can't do
      otherwise).</p></li>
<li class="listitem"><p>Libgda will not apply this rule when parsing SQL code, the SQL code being parsed
      has to be conform to the database it will be used with</p></li>
</ul></div>
<p>Additional information about the GDA_CONNECTION_OPTIONS_THREAD_SAFE and GDA_CONNECTION_OPTIONS_THREAD_ISOLATED flags:
The GDA_CONNECTION_OPTIONS_THREAD_SAFE flag specifies that it has to be able to use the returned connection object from
several threads at once (locking is ensured by the <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> itself). Depending on the database provider's
implementation and on the native libraries it uses, the "normal" connection object might not respect this requirement,
and in this case a specific thread is started and used as the unique thread which will manipulate the actual connection,
while a "wrapper connection" is actually returned and used by the caller (that wrapper connection passes method calls
from the calling thread to the actual connection's specific thread, and gets the results back).</p>
<p>The GDA_CONNECTION_OPTIONS_THREAD_ISOLATED forces using a specific thread and a "wrapper connection" even if the
"normal" connection would itself be thread safe; this is useful for example to be sure the asynchronous API can
always be used (see <a class="link" href="GdaConnection.html#gda-connection-async-statement-execute" title="gda_connection_async_statement_execute ()"><code class="function">gda_connection_async_statement_execute()</code></a>).</p>
<p>Having a specific thread and a "wrapper connection" definitely has an impact on the performances (because it involves
messages passing between threads for every method call), so using the
GDA_CONNECTION_OPTIONS_THREAD_SAFE or GDA_CONNECTION_OPTIONS_THREAD_ISOLATED flags should be carefully considered.</p>
<p>Note about the <em class="parameter"><code>GDA_CONNECTION_OPTIONS_AUTO_META_DATA</code></em>
 flag:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>Every time a DDL statement is successfully executed, the associated meta data, if
              defined, will be updated, which has a impact on performances</p></li>
<li class="listitem"><p>If a transaction is started and some DDL statements are executed and the transaction
           is not rolled back or committed, then the meta data may end up being wrong</p></li>
</ul></div>
<div class="refsect3">
<a name="GdaConnectionOptions.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-OPTIONS-NONE:CAPS"></a>GDA_CONNECTION_OPTIONS_NONE</p></td>
<td class="enum_member_description">
<p>no specific aspect</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-OPTIONS-READ-ONLY:CAPS"></a>GDA_CONNECTION_OPTIONS_READ_ONLY</p></td>
<td class="enum_member_description">
<p>this flag specifies that the connection to open should be in a read-only mode
(this policy is not correctly enforced at the moment)</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-OPTIONS-SQL-IDENTIFIERS-CASE-SENSITIVE:CAPS"></a>GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE</p></td>
<td class="enum_member_description">
<p>this flag specifies that SQL identifiers submitted as input
to Libgda have to keep their case sensitivity. </p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-OPTIONS-THREAD-SAFE:CAPS"></a>GDA_CONNECTION_OPTIONS_THREAD_SAFE</p></td>
<td class="enum_member_description">
<p>this flag specifies that the connection to open will be used

by several threads at once so it has to be thread safe</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-OPTIONS-THREAD-ISOLATED:CAPS"></a>GDA_CONNECTION_OPTIONS_THREAD_ISOLATED</p></td>
<td class="enum_member_description">
<p>this flag specifies that the connection to open will be used

by several threads at once and requests that the real connection be used
only in a sub thread created specifically for it</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-OPTIONS-AUTO-META-DATA:CAPS"></a>GDA_CONNECTION_OPTIONS_AUTO_META_DATA</p></td>
<td class="enum_member_description">
<p>this flags specifies that if a <a class="link" href="GdaMetaStore.html" title="GdaMetaStore"><span class="type">GdaMetaStore</span></a> has been associated
to the connection, then it is kept up to date with the evolutions in the
database's structure. Be aware however that there are some drawbacks
explained below.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnectionError"></a><h3>enum GdaConnectionError</h3>
<div class="refsect3">
<a name="GdaConnectionError.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-DSN-NOT-FOUND-ERROR:CAPS"></a>GDA_CONNECTION_DSN_NOT_FOUND_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-PROVIDER-NOT-FOUND-ERROR:CAPS"></a>GDA_CONNECTION_PROVIDER_NOT_FOUND_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-PROVIDER-ERROR:CAPS"></a>GDA_CONNECTION_PROVIDER_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-NO-CNC-SPEC-ERROR:CAPS"></a>GDA_CONNECTION_NO_CNC_SPEC_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-NO-PROVIDER-SPEC-ERROR:CAPS"></a>GDA_CONNECTION_NO_PROVIDER_SPEC_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-OPEN-ERROR:CAPS"></a>GDA_CONNECTION_OPEN_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-STATEMENT-TYPE-ERROR:CAPS"></a>GDA_CONNECTION_STATEMENT_TYPE_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-CANT-LOCK-ERROR:CAPS"></a>GDA_CONNECTION_CANT_LOCK_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-TASK-NOT-FOUND-ERROR:CAPS"></a>GDA_CONNECTION_TASK_NOT_FOUND_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-UNSUPPORTED-THREADS-ERROR:CAPS"></a>GDA_CONNECTION_UNSUPPORTED_THREADS_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-CLOSED-ERROR:CAPS"></a>GDA_CONNECTION_CLOSED_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-META-DATA-CONTEXT-ERROR:CAPS"></a>GDA_CONNECTION_META_DATA_CONTEXT_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-UNSUPPORTED-ASYNC-EXEC-ERROR:CAPS"></a>GDA_CONNECTION_UNSUPPORTED_ASYNC_EXEC_ERROR</p></td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="GDA-CONNECTION-ERROR:CAPS"></a><h3>GDA_CONNECTION_ERROR</h3>
<pre class="programlisting">#define             GDA_CONNECTION_ERROR</pre>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnectionFeature"></a><h3>enum GdaConnectionFeature</h3>
<p>Used in <a class="link" href="GdaConnection.html#gda-connection-supports-feature" title="gda_connection_supports_feature ()"><code class="function">gda_connection_supports_feature()</code></a> and <a class="link" href="GdaServerProvider.html#gda-server-provider-supports-feature" title="gda_server_provider_supports_feature ()"><code class="function">gda_server_provider_supports_feature()</code></a> to test if a connection
or a database provider supports some specific feature.</p>
<div class="refsect3">
<a name="GdaConnectionFeature.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-AGGREGATES:CAPS"></a>GDA_CONNECTION_FEATURE_AGGREGATES</p></td>
<td class="enum_member_description">
<p>test for aggregates support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-BLOBS:CAPS"></a>GDA_CONNECTION_FEATURE_BLOBS</p></td>
<td class="enum_member_description">
<p>test for BLOBS (binary large objects) support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-INDEXES:CAPS"></a>GDA_CONNECTION_FEATURE_INDEXES</p></td>
<td class="enum_member_description">
<p>test for indexes support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-INHERITANCE:CAPS"></a>GDA_CONNECTION_FEATURE_INHERITANCE</p></td>
<td class="enum_member_description">
<p>test for tables inheritance support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-NAMESPACES:CAPS"></a>GDA_CONNECTION_FEATURE_NAMESPACES</p></td>
<td class="enum_member_description">
<p>test for namespaces support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-PROCEDURES:CAPS"></a>GDA_CONNECTION_FEATURE_PROCEDURES</p></td>
<td class="enum_member_description">
<p>test for functions support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-SEQUENCES:CAPS"></a>GDA_CONNECTION_FEATURE_SEQUENCES</p></td>
<td class="enum_member_description">
<p>test for sequences support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-SQL:CAPS"></a>GDA_CONNECTION_FEATURE_SQL</p></td>
<td class="enum_member_description">
<p>test for SQL language (even specific to the database) support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-TRANSACTIONS:CAPS"></a>GDA_CONNECTION_FEATURE_TRANSACTIONS</p></td>
<td class="enum_member_description">
<p>test for transactions support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-SAVEPOINTS:CAPS"></a>GDA_CONNECTION_FEATURE_SAVEPOINTS</p></td>
<td class="enum_member_description">
<p>test for savepoints within transactions support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-SAVEPOINTS-REMOVE:CAPS"></a>GDA_CONNECTION_FEATURE_SAVEPOINTS_REMOVE</p></td>
<td class="enum_member_description">
<p>test if savepoints can be removed</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-TRIGGERS:CAPS"></a>GDA_CONNECTION_FEATURE_TRIGGERS</p></td>
<td class="enum_member_description">
<p>test for triggers support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-UPDATABLE-CURSOR:CAPS"></a>GDA_CONNECTION_FEATURE_UPDATABLE_CURSOR</p></td>
<td class="enum_member_description">
<p>test for updatable cursors support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-USERS:CAPS"></a>GDA_CONNECTION_FEATURE_USERS</p></td>
<td class="enum_member_description">
<p>test for users support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-VIEWS:CAPS"></a>GDA_CONNECTION_FEATURE_VIEWS</p></td>
<td class="enum_member_description">
<p>test for views support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-XA-TRANSACTIONS:CAPS"></a>GDA_CONNECTION_FEATURE_XA_TRANSACTIONS</p></td>
<td class="enum_member_description">
<p>test for distributed transactions support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-MULTI-THREADING:CAPS"></a>GDA_CONNECTION_FEATURE_MULTI_THREADING</p></td>
<td class="enum_member_description">
<p>test for native multi-threading support</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-ASYNC-EXEC:CAPS"></a>GDA_CONNECTION_FEATURE_ASYNC_EXEC</p></td>
<td class="enum_member_description">
<p>test if connection supports asynchronous execution</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-FEATURE-LAST:CAPS"></a>GDA_CONNECTION_FEATURE_LAST</p></td>
<td class="enum_member_description">
<p>not used</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnectionMetaType"></a><h3>enum GdaConnectionMetaType</h3>
<p>Used with <a class="link" href="GdaConnection.html#gda-connection-get-meta-store-data" title="gda_connection_get_meta_store_data ()"><code class="function">gda_connection_get_meta_store_data()</code></a> to describe what meta data to extract from
a connection's associated <a class="link" href="GdaMetaStore.html" title="GdaMetaStore"><span class="type">GdaMetaStore</span></a>.</p>
<div class="refsect3">
<a name="GdaConnectionMetaType.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-META-NAMESPACES:CAPS"></a>GDA_CONNECTION_META_NAMESPACES</p></td>
<td class="enum_member_description">
<p>lists the namespaces (or schemas for PostgreSQL)</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-META-TYPES:CAPS"></a>GDA_CONNECTION_META_TYPES</p></td>
<td class="enum_member_description">
<p>lists the database types</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-META-TABLES:CAPS"></a>GDA_CONNECTION_META_TABLES</p></td>
<td class="enum_member_description">
<p>lists the tables</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-META-VIEWS:CAPS"></a>GDA_CONNECTION_META_VIEWS</p></td>
<td class="enum_member_description">
<p>lists the views</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-META-FIELDS:CAPS"></a>GDA_CONNECTION_META_FIELDS</p></td>
<td class="enum_member_description">
<p>lists the table's or view's fields</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GDA-CONNECTION-META-INDEXES:CAPS"></a>GDA_CONNECTION_META_INDEXES</p></td>
<td class="enum_member_description">
<p>lists the table's indexes</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="GdaConnection.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GdaConnection--auth-string"></a><h3>The <code class="literal">“auth-string”</code> property</h3>
<pre class="programlisting">  “auth-string”              <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
<p>Authentication string to use.</p>
<p>Owner: GdaConnection</p>
<p>Flags: Read / Write</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection--cnc-string"></a><h3>The <code class="literal">“cnc-string”</code> property</h3>
<pre class="programlisting">  “cnc-string”               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
<p>Connection string to use.</p>
<p>Owner: GdaConnection</p>
<p>Flags: Read / Write</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection--dsn"></a><h3>The <code class="literal">“dsn”</code> property</h3>
<pre class="programlisting">  “dsn”                      <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
<p>DSN to use.</p>
<p>Owner: GdaConnection</p>
<p>Flags: Read / Write</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection--events-history-size"></a><h3>The <code class="literal">“events-history-size”</code> property</h3>
<pre class="programlisting">  “events-history-size”      <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
<p>Defines the number of <a class="link" href="GdaConnectionEvent.html" title="GdaConnectionEvent"><span class="type">GdaConnectionEvent</span></a> objects kept in memory which can
be fetched using <a class="link" href="GdaConnection.html#gda-connection-get-events" title="gda_connection_get_events ()"><code class="function">gda_connection_get_events()</code></a>.</p>
<p>Owner: GdaConnection</p>
<p>Flags: Read / Write</p>
<p>Allowed values: &gt;= 5</p>
<p>Default value: 5</p>
<p class="since">Since: 4.2</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection--execution-slowdown"></a><h3>The <code class="literal">“execution-slowdown”</code> property</h3>
<pre class="programlisting">  “execution-slowdown”       <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a></pre>
<p>Artificially slows down the execution of queries. This property can be used to
debug some problems. If non zero, this value is the number of microseconds waited before actually
executing each query.</p>
<p>Owner: GdaConnection</p>
<p>Flags: Read / Write</p>
<p>Default value: 0</p>
<p class="since">Since: 5.2.0</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection--execution-timer"></a><h3>The <code class="literal">“execution-timer”</code> property</h3>
<pre class="programlisting">  “execution-timer”          <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>Computes execution times for each statement executed.</p>
<p>Owner: GdaConnection</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
<p class="since">Since: 4.2.9</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection--is-wrapper"></a><h3>The <code class="literal">“is-wrapper”</code> property</h3>
<pre class="programlisting">  “is-wrapper”               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>This property, if set to <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, specifies that the connection is not a real connection, but rather
a <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> object which "proxies" all the calls to another connection which executes in a sub
thread.</p>
<p>Note: this property is used internally by Libgda and should not be directly used by any programs. Setting
this property has no effect, reading it is supported, though.</p>
<p>Owner: GdaConnection</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
<p class="since">Since: 4.2</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection--meta-store"></a><h3>The <code class="literal">“meta-store”</code> property</h3>
<pre class="programlisting">  “meta-store”               <a class="link" href="GdaMetaStore.html" title="GdaMetaStore"><span class="type">GdaMetaStore</span></a> *</pre>
<p>GdaMetaStore used by the connection.</p>
<p>Owner: GdaConnection</p>
<p>Flags: Read / Write</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection--monitor-wrapped-in-mainloop"></a><h3>The <code class="literal">“monitor-wrapped-in-mainloop”</code> property</h3>
<pre class="programlisting">  “monitor-wrapped-in-mainloop” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>Useful only when there is a mainloop and when the connection acts as a thread wrapper around another connection,
it sets up a timeout to handle signals coming from the wrapped connection.</p>
<p>If the connection is not a thread wrapper, then this property has no effect.</p>
<p>Owner: GdaConnection</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
<p class="since">Since: 4.2</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection--options"></a><h3>The <code class="literal">“options”</code> property</h3>
<pre class="programlisting">  “options”                  <a class="link" href="GdaConnection.html#GdaConnectionOptions" title="enum GdaConnectionOptions"><span class="type">GdaConnectionOptions</span></a></pre>
<p>Options.</p>
<p>Owner: GdaConnection</p>
<p>Flags: Read / Write</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection--provider"></a><h3>The <code class="literal">“provider”</code> property</h3>
<pre class="programlisting">  “provider”                 <a class="link" href="GdaServerProvider.html" title="GdaServerProvider"><span class="type">GdaServerProvider</span></a> *</pre>
<p>Provider to use.</p>
<p>Owner: GdaConnection</p>
<p>Flags: Read / Write</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection--thread-owner"></a><h3>The <code class="literal">“thread-owner”</code> property</h3>
<pre class="programlisting">  “thread-owner”             <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></pre>
<p>Unique GThread from which the connection will be available.This should only be modified by the database providers' implementation.</p>
<p>Owner: GdaConnection</p>
<p>Flags: Read / Write</p>
</div>
</div>
<div class="refsect1">
<a name="GdaConnection.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="GdaConnection-conn-closed"></a><h3>The <code class="literal">“conn-closed”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc,
               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>       user_data)</pre>
<p>Gets emitted when the connection to the database has been closed</p>
<div class="refsect3">
<a name="GdaConnection-conn-closed.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>the <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection-conn-opened"></a><h3>The <code class="literal">“conn-opened”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc,
               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>       user_data)</pre>
<p>Gets emitted when the connection has been opened to the database</p>
<div class="refsect3">
<a name="GdaConnection-conn-opened.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>the <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection-conn-to-close"></a><h3>The <code class="literal">“conn-to-close”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc,
               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>       user_data)</pre>
<p>Gets emitted when the connection to the database is about to be closed</p>
<div class="refsect3">
<a name="GdaConnection-conn-to-close.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>the <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection-dsn-changed"></a><h3>The <code class="literal">“dsn-changed”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc,
               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>       user_data)</pre>
<p>Gets emitted when the DSN used by <em class="parameter"><code>cnc</code></em>
 has been changed</p>
<div class="refsect3">
<a name="GdaConnection-dsn-changed.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>the <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection-error"></a><h3>The <code class="literal">“error”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a>      *cnc,
               <a class="link" href="GdaConnectionEvent.html" title="GdaConnectionEvent"><span class="type">GdaConnectionEvent</span></a> *event,
               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>            user_data)</pre>
<p>Gets emitted whenever a connection event occurs. Check the nature of <em class="parameter"><code>event</code></em>
 to
see if it's an error or a simple notification</p>
<div class="refsect3">
<a name="GdaConnection-error.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>the <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>event</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaConnectionEvent.html" title="GdaConnectionEvent"><span class="type">GdaConnectionEvent</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GdaConnection-transaction-status-changed"></a><h3>The <code class="literal">“transaction-status-changed”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a> *cnc,
               <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>       user_data)</pre>
<p>Gets emitted when the transaction status of <em class="parameter"><code>cnc</code></em>
 has changed (a transaction has been

started, rolled back, a savepoint added,...)</p>
<div class="refsect3">
<a name="GdaConnection-transaction-status-changed.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cnc</p></td>
<td class="parameter_description"><p>the <a class="link" href="GdaConnection.html" title="GdaConnection"><span class="type">GdaConnection</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p>Flags: <a href="/usr/share/gtk-doc/html/gobject/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS">Run Last</a></p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32</div>
</body>
</html>